diff options
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -149,6 +149,10 @@ umask 0077 export PATH=~/.local/bin:~/.local/sbin:$PATH export PATH=/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH +export MANPATH=$MANPATH:$HOME/.local/share/man + +export GOPATH=$HOME/.local + if [[ -d ~/nlp_scripts ]]; then export PATH=~/nlp_scripts:$PATH fi @@ -175,7 +179,6 @@ export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 export RUBYOPT=-Ku -export PATH=~/.local/lib/ruby/bin:$PATH export GEM_HOME=$HOME/.local/lib/ruby/ export GEM_PATH=$HOME/.local/lib/ruby/:$GEM_PATH @@ -220,8 +223,8 @@ 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 - bryant|barkley|bogues*|curry*|durant*|iverson*|jordan*|ming*|nowitzki*|oneal*|robinson*) +case `hostname -f` in + *.local) HOSTCOLOR_BG=magenta HOSTCOLOR_FG=black ;; @@ -234,23 +237,20 @@ case `hostname` in HOSTCOLOR_BG=black HOSTCOLOR_FG=white alias tmux="tmux -f ~/.tmux.default.conf" + # google cloud + if [[ $(on_gcloud) == "yes" ]]; then + HOSTCOLOR_BG=blue + HOSTCOLOR_FG=white + alias tmux="tmux -f ~/.tmux.gcloud.conf" + # aws + elif [[ $(on_aws) == "yes" ]]; then + HOSTCOLOR_BG=yellow + HOSTCOLOR_FG=black + alias tmux="tmux -f ~/.tmux.aws.conf" + fi ;; esac -# google cloud -if [[ $(on_gcloud) == "yes" ]]; then - HOSTCOLOR_BG=blue - HOSTCOLOR_FG=white - alias tmux="tmux -f ~/.tmux.gcloud.conf" -fi - -# aws -if [[ $(on_aws) == "yes" ]]; then - HOSTCOLOR_BG=yellow - HOSTCOLOR_FG=black - alias tmux="tmux -f ~/.tmux.aws.conf" -fi - function chpwd { if [[ -e $ZDIR/functions ]] { @@ -311,7 +311,7 @@ alias less='less -R' alias lh='ls --color=always -lasth | less' alias equery='sudo equery -N' -alias feh='feh -F' +alias feh='feh -F --auto-rotate' alias git='git -c color.status=always' alias grep='grep --color=auto' alias pdf='zathura' @@ -330,7 +330,7 @@ alias muxl='tmux list-sessions' alias muxa='tmux attach -t' alias easy_install_home='easy_install --install-dir=$HOME/.local/lib/python/site-packages' -alias pip_home='pip install -t $HOME/.local/' +alias pip_install_home='pip install --prefix $HOME/.local' alias npm_install_home='npm install -g --prefix ~/.local/lib/node' alias castnow_home='castnow --myip 192.168.0.100 --address 192.168.0.4' @@ -338,6 +338,8 @@ alias my_ip='echo "$(curl 'https://api.ipify.org' 2>/dev/null)"' alias t_timeline='while true; do clear; t timeline -n 16 -C icon; sleep 600; done' +alias nnn='NNN_VISUAL=1 nnn' + if [[ $_HOST_TYPE == "Linux" ]]; then alias cal='while true; do clear; echo; khal calendar; sleep 600; done' alias wifi_list='sudo iwlist wlan0 scan' |