diff options
Diffstat (limited to 'zsh/.zsh/functions')
-rw-r--r-- | zsh/.zsh/functions | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zsh/.zsh/functions b/zsh/.zsh/functions new file mode 100644 index 0000000..7c2b49a --- /dev/null +++ b/zsh/.zsh/functions @@ -0,0 +1,16 @@ +#!/bin/zsh + +function colo { + + # Change colors for current session + $HOME/bin/recolor < ~/.Xresources/$1 + + # Load Xresources file for future sessions + xrdb -I$HOME ~/.Xresources/$1 + + # Change environment variable + export COLORSCHEME=$1 + + # Change default environment variable for future sessions + sed -i --follow-symlinks "s/^export COLORSCHEME=.*$/export COLORSCHEME=$1/g" ~/.zsh/tmp +} |