caem
62a2c850ae
I run Debian on my Thinkpad and wanted to take advantage of nix on there without also installing NixOS there, so here is added support for it.
20 lines
463 B
Bash
Executable file
20 lines
463 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
if [ -z "$FZF_TAB_FILE" ]; then
|
|
if [ ! -d "$HOME/.cache/fzf-tab" ]; then
|
|
echo "Installing fzf-tab"
|
|
git clone "https://github.com/Aloxaf/fzf-tab" "$HOME/.cache/fzf-tab"
|
|
fi
|
|
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
|
|
|