diff --git a/.bin/c b/.bin/c index 7947890..b15d63c 100755 --- a/.bin/c +++ b/.bin/c @@ -1,11 +1,9 @@ #!/bin/sh -if [ ! -z "$@" ] -then - EXTRA="--query $@" -fi +[ ! -z "$@" ] \ + && EXTRA="--query $@" -F=$(find $HOME/.config/* \ +export FZF_DEFAULT_COMMAND='find $HOME/.config/* \ $HOME/.* \ -maxdepth 1 \ -type f \ @@ -19,7 +17,7 @@ F=$(find $HOME/.config/* \ -o -name ".Xdefaults" \ -o -name ".ini" \ -o -name "config" \ - \) | sort -u \ - | fzf -e +s $EXTRA --preview='cat {}' ); -[ -z "$F" ] || vim "$F"; + \)' +fzf -e +s $EXTRA --preview='cat {}' +[ -z "$F" ] || vim "$F"; diff --git a/.kshrc b/.kshrc index 5588908..2f71232 100644 --- a/.kshrc +++ b/.kshrc @@ -132,10 +132,12 @@ alias spectrwmrc="vim ~/.config/spectrwm/spectrwm.conf" alias rem="remind -c+cl3 ~/.reminders" # mastodon -toot-sh() { toot $1 -u sh@bsd.network $2; } -toot-uug() { toot $1 -u uugrn@chaos.social $2; } +toot-sh() { toot $@ -u sh@bsd.network; } +toot-uug() { toot $@ -u uugrn@chaos.social; } alias toot-sh-post="toot post -u sh@bsd.network -e vim" alias toot-uug-post="toot post -u uugrn@chaos.social -e vim" +alias toot-sh-reply="toot post -r $1 -u sh@bsd.network -e vim" +alias toot-uug-reply="toot post -r $1 -u uugrn@chaos.social -e vim" # mupdf alias mupdf="mupdf-gl -XJ"