19 lines
434 B
Bash
19 lines
434 B
Bash
|
#!/usr/bin/env zsh
|
||
|
|
||
|
if [ -z "$FZF_TAB_FILE" ] && [ ! -d "$HOME/.cache/fzf-tab" ]; then
|
||
|
echo "Installing fzf-tab"
|
||
|
git clone "https://github.com/Aloxaf/fzf-tab" "$HOME/.cache/fzf-tab"
|
||
|
FZF_TAB_FILE="$HOME/.cache/fzf-tab/fzf-tab.plugin.zsh"
|
||
|
fi
|
||
|
|
||
|
autoload -Uz compinit
|
||
|
compinit
|
||
|
|
||
|
source "$FZF_TAB_FILE"
|
||
|
zstyle ':completion:*:git-checkout:*' sort false
|
||
|
|
||
|
if [ -n "$TMUX" ]; then
|
||
|
zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
|
||
|
fi
|
||
|
|