Skip to content

Commit fefb466

Browse files
mapitmanCopilot
andauthored
Update generic/install-tmux-catppuccin-theme
add error checking Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3a8eeaf commit fefb466

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

generic/install-tmux-catppuccin-theme

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
# source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/generic/install-tmux-catppuccin-theme)
33

44
mkdir -p ~/.config/tmux/plugins/catppuccin
5-
git clone -b v2.1.3 https://github.com/catppuccin/tmux.git ~/.config/tmux/plugins/catppuccin/tmux
6-
7-
echo "Catppuccin theme for tmux has been installed."
8-
echo "To apply the theme, add the following line to your .tmux.conf file:"
9-
echo "run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux"
5+
if git clone -b v2.1.3 https://github.com/catppuccin/tmux.git ~/.config/tmux/plugins/catppuccin/tmux; then
6+
echo "Catppuccin theme for tmux has been installed."
7+
echo "To apply the theme, add the following line to your .tmux.conf file:"
8+
echo "run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux"
9+
else
10+
echo "Error: Failed to clone Catppuccin tmux theme repository." >&2
11+
# If sourced, return non-zero; if executed directly, exit non-zero.
12+
return 1 2>/dev/null || exit 1
13+
fi

0 commit comments

Comments
 (0)