21 lines
586 B
Plaintext
21 lines
586 B
Plaintext
|
#!/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 "Postear en")"
|
||
|
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
|