Update 2023-01-21 12:25 OpenBSD/amd64

This commit is contained in:
c0dev0id 2023-01-21 12:25:49 +01:00
parent 5b3a94487b
commit e40930890a
2 changed files with 10 additions and 10 deletions

14
.bin/c
View File

@ -1,11 +1,9 @@
#!/bin/sh #!/bin/sh
if [ ! -z "$@" ] [ ! -z "$@" ] \
then && EXTRA="--query $@"
EXTRA="--query $@"
fi
F=$(find $HOME/.config/* \ export FZF_DEFAULT_COMMAND='find $HOME/.config/* \
$HOME/.* \ $HOME/.* \
-maxdepth 1 \ -maxdepth 1 \
-type f \ -type f \
@ -19,7 +17,7 @@ F=$(find $HOME/.config/* \
-o -name ".Xdefaults" \ -o -name ".Xdefaults" \
-o -name ".ini" \ -o -name ".ini" \
-o -name "config" \ -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";

6
.kshrc
View File

@ -132,10 +132,12 @@ alias spectrwmrc="vim ~/.config/spectrwm/spectrwm.conf"
alias rem="remind -c+cl3 ~/.reminders" alias rem="remind -c+cl3 ~/.reminders"
# mastodon # mastodon
toot-sh() { toot $1 -u sh@bsd.network $2; } toot-sh() { toot $@ -u sh@bsd.network; }
toot-uug() { toot $1 -u uugrn@chaos.social $2; } toot-uug() { toot $@ -u uugrn@chaos.social; }
alias toot-sh-post="toot post -u sh@bsd.network -e vim" 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-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 # mupdf
alias mupdf="mupdf-gl -XJ" alias mupdf="mupdf-gl -XJ"