diff options
author | Urbain Vaes <urbain@vaes.uk> | 2020-10-19 16:31:36 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2020-10-19 16:31:36 +0100 |
commit | ea797e789ed5566fe3ffb5395ea41eb74c2b73a1 (patch) | |
tree | 637987a7066641ea3d8c7d5aa3bade2ad5b3e615 /zsh | |
parent | cf274306ec254317e88d24b6147202aae862df80 (diff) |
Remove colorschemes
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 45 |
1 files changed, 0 insertions, 45 deletions
@@ -91,51 +91,6 @@ z() { } zle -N z -## Colors {{{1 - -[[ -f $HOME/.local/colors.zsh ]] && source $HOME/.local/colors.zsh - -colorschemes=$(ls ${HOME}/.Xresources) - -function colo { - - COLORSCHEME=$1 - XRESOURCE_FILE=${HOME}/.Xresources/$COLORSCHEME - - # Change colors for current session - if [[ ! -z "$TMUX" ]]; then - printf '\x1bPtmux;' - esc='\x1b\x1b' - else - esc='\x1b' - fi - - /usr/bin/cpp ${XRESOURCE_FILE} | tr -d ' \t' | sed -n \ - -e "s/.*background:/${esc}]11;/p" \ - -e "s/.*foreground:/${esc}]10;/p" \ - -e "s/.*cursorColor:/${esc}]12;/p" \ - -e "s/.*borderColor:/${esc}]708;/p" \ - -e "s/.*color\\([0-9][^:]*\\):/${esc}]4;\\1;/p" | tr \\n \\a - - # Change color for future sessions - xrdb ${XRESOURCE_FILE} - - echo "export COLORSCHEME=$1" > $HOME/.local/colors.zsh - source $HOME/.local/colors.zsh -} - -# Completion for colorschemes (-M -> Case insensitive) -compctl -k "(${colorschemes})" -M 'm:{a-z}={A-Z}' colo - -function show256 { - for i in {0..255} ; do - printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i" - if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then - printf "\n"; - fi - done -} - ## Aliases {{{1 # Directories |