]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blobdiff - .zshrc
export so it gets picked up by debconf, needrestart, etc
[user/henk/vcsh/zsh.git] / .zshrc
diff --git a/.zshrc b/.zshrc
index 82550facd40f75d7384b5709062337084843f3f5..739dac548b2e6911f9d58f77bacb9357e2c4ede6 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -13,6 +13,10 @@ export SAVEHIST=1000000000
 export ANSIBLE_NOCOWS=1
 export ANSIBLE_STRATEGY=mitogen_linear
 
+export TEXMFCNF=${HOME}/.texlive:
+
+export FZF_DEFAULT_COMMAND='fdfind --type f'
+
 # what is that for exactly? maybe taskwarrior? or timewarrior?
 REPORTTIME=10
 
@@ -85,6 +89,7 @@ NEWT_COLORS="${NEWT_COLORS};helpline=yellow,brown"
 NEWT_COLORS="${NEWT_COLORS};emptyscale=red"
 NEWT_COLORS="${NEWT_COLORS};fullscale=blue"
 
+export NEWT_COLORS
 
 # black
 # darkgray
@@ -272,6 +277,21 @@ zgenom load 'https://github.com/nojhan/liquidprompt'
 # see https://github.com/zsh-users/zsh-syntax-highlighting
 source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
 
+source /usr/share/doc/fzf/examples/key-bindings.zsh
+source /usr/share/doc/fzf/examples/completion.zsh
+
+# Use fd (https://github.com/sharkdp/fd) instead of the default find
+# command for listing path candidates.
+# - The first argument to the function ($1) is the base path to start traversal
+# - See the source code (completion.{bash,zsh}) for the details.
+_fzf_compgen_path() {
+  fdfind --hidden --follow --exclude ".git" . "$1"
+}
+
+# Use fd to generate the list for directory completion
+_fzf_compgen_dir() {
+  fdfind --type d --hidden --follow --exclude ".git" . "$1"
+}
 
 # commands to run after initialization is complete
 #task awaiting