deadguy
fecbfe74f8
Optimize el script para subir los posts a los blogs. o al menos creo que lo optimize, ya veremos que pasa. Tambien corregi 2 cositas del script de escribir.
21 lines
580 B
Bash
Executable File
21 lines
580 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MAINDIR="$HOME/doc/paginas/tilde"
|
|
|
|
subir() {
|
|
if [ "$PWD" = "$MAINDIR/texto-plano/muert.o" ] || [ "$PWD" = "$MAINDIR/town/textarrrgh" ]; then
|
|
hugo
|
|
fi
|
|
git add . && git commit -m "nuevo post"
|
|
}
|
|
|
|
listar() { rofi -dmenu "$@"; }
|
|
|
|
MENU="$(printf "Fuckup\\nMuerto\\nDotfiles\\nTextArt" | listar -p " ")"
|
|
case $MENU in
|
|
'Fuckup') cd "$MAINDIR/fuckup/blog" && subir || exit ;;
|
|
'Muerto') cd "$MAINDIR/texto-plano/muert.o" && subir || exit ;;
|
|
'Dotfiles') cd "$MAINDIR/club/the-dot-files" && subir || exit ;;
|
|
'TextArt') cd "$MAINDIR/town/textarrrgh" && subir || exit ;;
|
|
esac
|