(zsh) comment out toggle theme
This commit is contained in:
parent
aff7779d12
commit
266690aef5
1 changed files with 10 additions and 10 deletions
20
zsh/.zshrc
20
zsh/.zshrc
|
|
@ -162,17 +162,17 @@ PS1="%n@%m:%~ $ "
|
||||||
unset color_prompt
|
unset color_prompt
|
||||||
|
|
||||||
# setup kitty, it will export TERM_COLOR_MODE (can be light or dark)
|
# setup kitty, it will export TERM_COLOR_MODE (can be light or dark)
|
||||||
source ~/.config/kitty/setup.sh
|
# source ~/.config/kitty/setup.sh
|
||||||
# function to toggle kitty terminal theme
|
# function to toggle kitty terminal theme
|
||||||
toggle_theme() {
|
# toggle_theme() {
|
||||||
if [ "$TERM_COLOR_MODE" == "light" ]; then
|
# if [ "$TERM_COLOR_MODE" == "light" ]; then
|
||||||
export TERM_COLOR_MODE=dark
|
# export TERM_COLOR_MODE=dark
|
||||||
kitten @ set-colors --all "$HOME/.config/kitty/dark.conf"
|
# kitten @ set-colors --all "$HOME/.config/kitty/dark.conf"
|
||||||
else
|
# else
|
||||||
export TERM_COLOR_MODE=light
|
# export TERM_COLOR_MODE=light
|
||||||
kitten @ set-colors --all "$HOME/.config/kitty/light.conf"
|
# kitten @ set-colors --all "$HOME/.config/kitty/light.conf"
|
||||||
fi
|
# fi
|
||||||
}
|
# }
|
||||||
|
|
||||||
type -p curl >/dev/null || echo -e "$WARNING curl is not installed"
|
type -p curl >/dev/null || echo -e "$WARNING curl is not installed"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue