2024-05-24 21:33:00 +02:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
2024-07-15 01:25:14 +02:00
|
|
|
if [ -z "$FZF_TAB_PLUGIN" ]; then
|
2024-06-06 12:41:31 +02:00
|
|
|
if [ ! -d "$HOME/.cache/fzf-tab" ]; then
|
|
|
|
echo "Installing fzf-tab"
|
|
|
|
git clone "https://github.com/Aloxaf/fzf-tab" "$HOME/.cache/fzf-tab"
|
|
|
|
fi
|
2024-07-15 01:25:14 +02:00
|
|
|
FZF_TAB_PLUGIN="$HOME/.cache/fzf-tab/fzf-tab.plugin.zsh"
|
2024-05-24 21:33:00 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
|
2024-07-15 01:25:14 +02:00
|
|
|
source "$FZF_TAB_PLUGIN"
|
2024-05-24 21:33:00 +02:00
|
|
|
zstyle ':completion:*:git-checkout:*' sort false
|
|
|
|
|
|
|
|
if [ -n "$TMUX" ]; then
|
|
|
|
zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
|
|
|
|
fi
|
|
|
|
|