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
1 changed files with 22 additions and 17 deletions

11
.bin/c
View File

@ -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";