Update 2023-01-21 12:30 OpenBSD/amd64
This commit is contained in:
parent
e40930890a
commit
71f6f6ce7b
11
.bin/c
11
.bin/c
@ -3,7 +3,8 @@
|
||||
[ ! -z "$@" ] \
|
||||
&& EXTRA="--query $@"
|
||||
|
||||
export FZF_DEFAULT_COMMAND='find $HOME/.config/* \
|
||||
FZF_DEFAULT_COMMAND='find \
|
||||
$HOME/.config/* \
|
||||
$HOME/.* \
|
||||
-maxdepth 1 \
|
||||
-type f \
|
||||
@ -19,5 +20,9 @@ export FZF_DEFAULT_COMMAND='find $HOME/.config/* \
|
||||
-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