From e146e947c52ac4adbe426b3f893faff1e46ed5f8 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 19 Apr 2016 15:24:25 +0100 Subject: Use GNU stow for dotfiles management --- zsh/.zsh/functions | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 zsh/.zsh/functions (limited to 'zsh/.zsh/functions') 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 +} -- cgit v1.2.3