[zsh] Added colours function

colours will print out available colors and their numbers
This commit is contained in:
Nick Nisi
2012-06-10 09:28:05 -05:00
parent 16788dbbd8
commit 740edba963
2 changed files with 12 additions and 0 deletions

10
zsh/functions.zsh Normal file
View File

@@ -0,0 +1,10 @@
function colours() {
for i in {0..255}; do
printf "\x1b[38;5;${i}mcolours${i}"
if (( $i % 5 == 0 )); then
printf "\n"
else
printf "\t"
fi
done
}

View File

@@ -35,3 +35,5 @@ fi
if [[ -d ~/bin ]]; then
export PATH=~/bin:$PATH
fi
[ -z "$TMUX" ] && export TERM=xterm-256color