aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/chcolors
blob: 9cd427071fcf2b0d86478e0256c5f4e5ea5c6742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

COLORSCHEME="dark"

if [ -f $HOME/.cache/colorscheme ]; then
	. $HOME/.cache/colorscheme
fi

case $COLORSCHEME in
	dark)
		COLORSCHEME="light" ;;
	*)
		COLORSCHEME="dark" ;;
esac

echo "export COLORSCHEME=$COLORSCHEME" > $HOME/.cache/colorscheme
pkill -SIGUSR1 zsh