]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blobdiff - .zshrc
customize fzf: use tmux and fdfind
[user/henk/vcsh/zsh.git] / .zshrc
diff --git a/.zshrc b/.zshrc
index 6c840816fdf5670be62cc9446f2fbea2ce80af79..1ea2da7454ba7b4a9b383307d22898de95ee171a 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -60,6 +60,12 @@ zgenom load "https://github.com/greymd/tmux-xpanes"
 setopt AUTO_CD
 setopt CHASE_LINKS
 
+# switch +/- when referring to the dirstack
+setopt PUSHD_MINUS
+
+# Make cd push the old directory onto the directory stack
+setopt AUTO_PUSHD
+
 setopt AUTO_NAME_DIRS
 
 # this should not be needed ever
@@ -208,6 +214,11 @@ 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
 
+eval "$(zoxide init zsh)"
+
+FZF_TMUX=1
+FZF_CTRL_T_COMMAND='command fdfind --hidden'
+FZF_ALT_C_COMMAND='command fdfind --hidden --type d'
 source /usr/share/doc/fzf/examples/key-bindings.zsh
 source /usr/share/doc/fzf/examples/completion.zsh