update dotfiles
This commit is contained in:
@@ -49,11 +49,26 @@ function switch_tmux_colors() {
|
||||
fi
|
||||
}
|
||||
|
||||
function switch_k9s_colors() {
|
||||
local config_file
|
||||
config_file="$DOTFILES/k9s/.config/k9s/config.yaml"
|
||||
if ! grep -q 'rose-pine' "$config_file"; then
|
||||
echo "Error, could not find rose pine settings in config file"
|
||||
return 1
|
||||
fi
|
||||
if grep -q 'rose-pine-dawn' "$config_file"; then
|
||||
sed_i 's/rose-pine-dawn/rose-pine/g' "$config_file"
|
||||
else
|
||||
sed_i 's/rose-pine/rose-pine-dawn/g' "$config_file"
|
||||
fi
|
||||
}
|
||||
|
||||
function switch_colors() {
|
||||
# Only work if the DOTFILES variable is set
|
||||
if [ -n "$DOTFILES" ]; then
|
||||
switch_alacritty_colors
|
||||
switch_tmux_colors
|
||||
switch_k9s_colors
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user