-
Notifications
You must be signed in to change notification settings - Fork 1
/
catppuccin.sh
executable file
·32 lines (26 loc) · 1.1 KB
/
catppuccin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
###########################
# Maiste <[email protected]> #
# Catpuccin get script #
# Version 20240521 #
###########################
set -ue
cd "$(dirname $0)/.."
. "./scripts/logger.sh"
print_header "Catpuccin configuration"
print_root
#-------------- BAT ------------#
print_section "Bat Catppuccin"
if [ -e "$HOME/$(bat --config-dir)/themes/Catppuccin\ Macchiato.tmTheme" ] ; then
skip_already_installed "bat catppuccin themes"
else
print_task "Create bat themes/ directory"
mkdir -p "$(bat --config-dir)/themes"
print_task "Get themes"
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Latte.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Frappe.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Macchiato.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
print_task "Build bat cache"
bat cache --build
fi