new addition in powerlinecolours

This commit is contained in:
Armin 2015-01-31 01:06:49 +01:00 committed by Netzverweigerer
commit ab56c48b87
2 changed files with 24 additions and 10 deletions

View file

@ -58,6 +58,11 @@ colours=(254 130 196 32)
# \_______________________> prompt foreground colour for user # \_______________________> prompt foreground colour for user
;; ;;
434b0a6daa530638a964132e86b8a01d7b39aa7c)
colours=(254 130 196 32)
;;

29
zshrc
View file

@ -40,12 +40,8 @@ if [[ "$COLORTERM" == "rxvt-xpm" ]]; then
export TERM="rxvt-unicode-256color" export TERM="rxvt-unicode-256color"
fi fi
# set $OS_TYPE to "osx" / "linux": # set $OS_TYPE
if [[ "$(uname)" == "Darwin" ]]; then export OS_TYPE="$(uname)"
export OS_TYPE="osx"
else
export OS_TYPE="linux"
fi
# $ZSH - Path to your zsh installation. # $ZSH - Path to your zsh installation.
export ZSH=$HOME/.zsh/ export ZSH=$HOME/.zsh/
@ -104,10 +100,9 @@ export LC_ALL="en_US.UTF-8"
# set ls options # set ls options
LS_OPTIONS="--color=auto --group-directories-first -F" LS_OPTIONS="--color=auto --group-directories-first -F"
alias ls="ls $LS_OPTIONS"
# Mac OS X specific stuff: # Mac OS X specific stuff:
if [[ "$OS_TYPE" == "osx" ]]; then if [[ "$OS_TYPE" == "Darwin" ]]; then
# preceed path with homebrew stuff: # preceed path with homebrew stuff:
export PATH="/usr/local/sbin:/usr/local/bin:$PATH" export PATH="/usr/local/sbin:/usr/local/bin:$PATH"
# ipython on mac: # ipython on mac:
@ -133,6 +128,21 @@ else
LS_COMMAND="ls" LS_COMMAND="ls"
fi fi
if [[ "$OS_TYPE" == "FreeBSD" ]]; then
CLICOLOR=1; export CLICOLOR
alias installport="sudo make config-recursive install clean clean-depends"
if [[ ! -e /usr/local/bin/gls ]]; then
echo "You should install the \"coreutils\" FreeBSD port."
else
alias ls='gls $LS_OPTIONS'
fi
if [[ ! -e /usr/local/bin/gdircolors ]]; then
echo "You should install the \"coreutils\" FreeBSD port."
else
alias dircolors='/usr/local/bin/gdircolors'
fi
fi
# enable ls colorization: # enable ls colorization:
if [ "$TERM" != "dumb" ]; then if [ "$TERM" != "dumb" ]; then
eval "$(dircolors "$ZSH"/dircolors)" eval "$(dircolors "$ZSH"/dircolors)"
@ -143,7 +153,7 @@ fi
export SHELL="$(which zsh)" export SHELL="$(which zsh)"
# keychain stuff # keychain stuff
if [[ "$OS_TYPE" == "linux" ]]; then if [[ "$OS_TYPE" == "Linux" ]]; then
ssh_cmd="$(which ssh)" ssh_cmd="$(which ssh)"
function ssh () { function ssh () {
echo "$@" >> $HOME/.keychain-args echo "$@" >> $HOME/.keychain-args
@ -175,5 +185,4 @@ alias sudo='nocorrect sudo'
# the more brutal attempt: # the more brutal attempt:
unsetopt correct{,all} unsetopt correct{,all}
alias sd='ssh deep'