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

This commit is contained in:
c0dev0id 2023-01-21 12:30:01 +01:00
parent e40930890a
commit 71f6f6ce7b

39
.bin/c
View File

@ -3,21 +3,26 @@
[ ! -z "$@" ] \
&& EXTRA="--query $@"
export FZF_DEFAULT_COMMAND='find $HOME/.config/* \
$HOME/.* \
-maxdepth 1 \
-type f \
\( -name "*.cfg" \
-o -name "*.conf" \
-o -name "*.lua" \
-o -name "*.sh" \
-o -name "*.xsession*" \
-o -name "*rc" \
-o -name ".Xresources" \
-o -name ".Xdefaults" \
-o -name ".ini" \
-o -name "config" \
\)'
FZF_DEFAULT_COMMAND='find \
$HOME/.config/* \
$HOME/.* \
-maxdepth 1 \
-type f \
\( -name "*.cfg" \
-o -name "*.conf" \
-o -name "*.lua" \
-o -name "*.sh" \
-o -name "*.xsession*" \
-o -name "*rc" \
-o -name ".Xresources" \
-o -name ".Xdefaults" \
-o -name ".ini" \
-o -name "config" \
\)'
fzf -e +s $EXTRA --preview='cat {}'
[ -z "$F" ] || vim "$F";
export FZF_DEFAULT_COMMAND
F=$(fzf -e +s $EXTRA --preview='cat {}')
[ -z "$F" ] \
|| vim "$F";