summaryrefslogtreecommitdiff
path: root/.local/bin/fw
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/fw')
-rwxr-xr-x.local/bin/fw9
1 files changed, 5 insertions, 4 deletions
diff --git a/.local/bin/fw b/.local/bin/fw
index ada20e8..75f23af 100755
--- a/.local/bin/fw
+++ b/.local/bin/fw
@@ -1,10 +1,11 @@
#!/bin/sh
-export FZF_HIST="$HOME/.local/share/fzf/wiki_history"
+export FZF_HIST="${XDG_DATA_HOME:-$HOME/.local/share}/fzf/wiki_history"
export FZF_HEADER="Search local wiki files"
-export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --delimiter='/' --with-nth=-1"
-fmd \
+export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --delimiter='/' --with-nth=-3.."
+fmd . \
/mnt/storage/Media/Tech/ \
/mnt/storage/Library \
/usr/share/doc/arch-wiki/html/en \
- "$@" ! -name '*.css'
+ --exclude '*.css' \
+ "$@"