Skip to content

Commit

Permalink
Install fzf-tab plugin via bootstrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackjacx committed Nov 12, 2023
1 parent 619b4ef commit 0030826
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions bootstrap/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,21 @@ configureSoftware() {
printf "#################################################################\n\n"

command -v bat >/dev/null 2>&1 && {
printf "Install Catppuccin for Bat\n"

printf "Install Catppuccin for Bat\n"

git clone [email protected]:catppuccin/bat.git /tmp/catppuccin-for-bat
tmp=$(mktemp -d)
git clone [email protected]:catppuccin/bat.git "$tmp"
mkdir -p "$(bat --config-dir)/themes"
cp /tmp/catppuccin-for-bat/*.tmTheme "$(bat --config-dir)/themes"
cp "$tmp/*.tmTheme" "$(bat --config-dir)/themes"
bat cache --build
printf 'Preview themes using `bat --list-themes | fzf --preview="bat --theme={} --color=always <path to file>"`\n'
}
}

fzf_tab_dir="${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab"
if [ ! -d "${HOME}/.oh-my-zsh" ]; then
printf "Install `fzf-tab` ZSH plugin\n"
git clone https://github.com/Aloxaf/fzf-tab "$fzf_tab_dir"
fi
}

#
Expand Down

0 comments on commit 0030826

Please sign in to comment.