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