Skip to content

Instantly share code, notes, and snippets.

@malko
Created November 19, 2012 14:34
Show Gist options
  • Save malko/4110953 to your computer and use it in GitHub Desktop.
Save malko/4110953 to your computer and use it in GitHub Desktop.
zshrc
PROMPT="$(print '[%{\e[3%(!.1.2)m%}%n@%{\e[0;m%}%m:%{\e[34;m%}%3~%{\e[0m%}]%(!.#.$)') " # default prompt
# Source global definitions
if [ -f /etc/zshrc ]; then
. /etc/zsh/zshrc
fi
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi
#-- ZEND SERVER CLI ADDITION
PATH=$PATH:/usr/local/zend/bin:/opt/android-sdk-linux/tools:/opt/android-sdk-linux/platform-tools
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib
# some more ls aliases
alias ll='ls -lh --group-directories-first'
alias la='ls -A'
alias grep='grep --colour=auto'
alias grepi='grep -in'
alias ping='ping -c 3'
#alias l='ls -CF'
#samsung G note 2 mounting
alias android-connect="mtpfs -o allow_other /media/phone"
alias android-disconnect="fuser mount -u /media/phone"
# The following lines were added by compinstall
zstyle ':completion:*' completer _oldlist _expand _complete _correct _approximate _prefix
zstyle ':completion:*' completions 1
zstyle ':completion:*' glob 1
zstyle ':completion:*' ignore-parents parent pwd .. directory
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' max-errors 1
zstyle ':completion:*' menu select=long
zstyle ':completion:*' original true
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
zstyle ':completion:*' substitute 1
zstyle ':completion:*' use-compctl true
zstyle :compinstall filename '/home/nathan/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=1000
setopt appendhistory beep notify
bindkey -e
# End of lines configured by zsh-newuser-install
export EDITOR=vim
export AWT_TOOLKIT=MToolkit
export PATH=$PATH:/home/malko/node_modules/.bin
function go {
export GO_SHELL_SCRIPT=$HOME/.__tmp_go.sh
python -m go $*
if [ -f $GO_SHELL_SCRIPT ] ; then
source $GO_SHELL_SCRIPT
fi
unset GO_SHELL_SCRIPT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment