From 740edba9632e294e1bf187d1c0e64dbae4b8320a Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Sun, 10 Jun 2012 09:28:05 -0500 Subject: [PATCH] [zsh] Added colours function colours will print out available colors and their numbers --- zsh/functions.zsh | 10 ++++++++++ zsh/zshrc.symlink | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 zsh/functions.zsh diff --git a/zsh/functions.zsh b/zsh/functions.zsh new file mode 100644 index 0000000..aa8fc05 --- /dev/null +++ b/zsh/functions.zsh @@ -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 +} diff --git a/zsh/zshrc.symlink b/zsh/zshrc.symlink index 0ee59dc..46dad48 100644 --- a/zsh/zshrc.symlink +++ b/zsh/zshrc.symlink @@ -35,3 +35,5 @@ fi if [[ -d ~/bin ]]; then export PATH=~/bin:$PATH fi + +[ -z "$TMUX" ] && export TERM=xterm-256color