summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2017-12-06 22:22:38 +0100
committerPatrick Simianer <p@simianer.de>2017-12-06 22:22:38 +0100
commit764757b00a89c307a519495807c7204dfe709778 (patch)
tree486991ed66c70d37c2e581fd6162d94d0676d8fd /zsh
parent05ff5bc4f2c7176b4d795a2eca813295293c21a5 (diff)
zsh: hosts
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc29
1 files changed, 9 insertions, 20 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index bf3f757..0298631 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -88,33 +88,22 @@ stty -ixon # enable mapping of C-s in vim..
autoload -U colors && colors
+# possible colors: black, white, green, cyan, red, yellow, magenta
case `hostname` in
- 2pac)
- HOSTCOLOR_BG=green
- HOSTCOLOR_FG=black
- ;;
- CLuster|node*|gpu*)
- HOSTCOLOR_BG=cyan
+ bogues*|curry*|iverson*|jordan*|ming*|nowitzki*|oneal*|robinson*)
+ HOSTCOLOR_BG=magenta
HOSTCOLOR_FG=black
;;
- coltrane)
+ *.uberspace.de)
HOSTCOLOR_BG=blue
HOSTCOLOR_FG=black
;;
- donna)
- HOSTCOLOR_BG=red
- HOSTCOLOR_FG=black
- ;;
- vicious)
- HOSTCOLOR_BG=yellow
- HOSTCOLOR_FG=black
- ;;
- lemmy)
- HOSTCOLOR_BG=white
+ ip-*)
+ HOSTCOLOR_BG=cyan
HOSTCOLOR_FG=black
;;
- bogues*|curry*|iverson*|nowitzki*|oneal*|ming*|jordan*|*.uberspace.de)
- HOSTCOLOR_BG=magenta
+ 2pac|coltrane|donna|vicious|lemmy|CLuster|node*|gpu*)
+ HOSTCOLOR_BG=green
HOSTCOLOR_FG=black
;;
*)
@@ -229,7 +218,7 @@ alias castnow_home='castnow --myip 192.168.0.100 --address 192.168.0.4'
alias my_ip='echo "$(curl 'https://api.ipify.org' 2>/dev/null)"'
-alias t_timeline='while true; do clear; t timeline -n 13 -C icon; sleep 600; done'
+alias t_timeline='while true; do clear; t timeline -n 16 -C icon; sleep 600; done'
if [[ $_HOST_TYPE == "Linux" ]]; then
alias cal='while true; do clear; echo; khal calendar; sleep 600; done'