]> 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 17212faf08e07bd437a3c856785b1ea4078597d4..1ea2da7454ba7b4a9b383307d22898de95ee171a 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -60,9 +60,19 @@ 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
 
-setopt BRACE_CCL
+# this should not be needed ever
+# unclear why it is even implemented
+# all relevant functionality should be possible without this anyway
+# see #zsh@libera on 2024-04-14
+# setopt BRACE_CCL
 setopt EXTENDED_GLOB
 setopt MARK_DIRS
 setopt NUMERIC_GLOB_SORT
@@ -204,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