Update 2023-01-21 12:30 OpenBSD/amd64
This commit is contained in:
parent
e40930890a
commit
71f6f6ce7b
39
.bin/c
39
.bin/c
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user