Skip to content

Instantly share code, notes, and snippets.

@Lvt
Created March 19, 2012 09:54
Show Gist options
  • Select an option

  • Save Lvt/2105871 to your computer and use it in GitHub Desktop.

Select an option

Save Lvt/2105871 to your computer and use it in GitHub Desktop.
This is my zshrc
ZSH=$HOME/Documents/Programming/oh-my-zsh
ZSH_THEME="aussiegeek"
autoload -U compinit promptinit
# compinit
#promptinit
#prompt adam1
# . ~/.myprompt
# bindkey -v
#autoload zkbd
# [[ ! -f ~/.zkbd/$TERM-$VENDOR-$OSTYPE ]] && zkbd
# source ~/.zkbd/$TERM-$VENDOR-$OSTYPE
[[ -n ${key[Backspace]} ]] && bindkey "${key[Backspace]}"
#backward-delete-char
[[ -n ${key[Home]} ]] && bindkey "${key[Home]}" beginning-of-line
[[ -n ${key[PageUp]} ]] && bindkey "${key[PageUp]}" up-line-or-history
[[ -n ${key[Delete]} ]] && bindkey "${key[Delete]}" delete-char
[[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line
[[ -n ${key[PageDown]} ]] && bindkey "${key[PageDown]}" down-line-or-history
[[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search
[[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char
[[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search
[[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete
zstyle ':completion:*' expand suffix
zstyle ':completion:*' file-sort name
zstyle ':completion:*' group-name ''
zstyle ':completion:*' insert-unambiguous true
zstyle ':completion:*' list-colors
# 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:'
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the
character to insert%s'
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' max-errors 0
zstyle ':completion:*' menu select=1
zstyle ':completion:*' original true
zstyle ':completion:*' select-prompt '%SScrolling active: current
selection at %p%s'
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' use-compctl false
autoload -Uz compinit
compinit
# End of lines added by compinstall
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
export CLICOLOR=yes
export LSCOLORS=gxfxcxdxbxegedabagacad
! [[ -n "$NOPRECMD" ]] && preexec () {
local HOSTNAME=$(hostname)
NAME="@$HOSTNAME"
if [[ "$TERM" == screen* ]]; then
# local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} # dont't use hostname
local CMD="${1[(wr)^(*=*|sudo|ssh|-*)]}$NAME" # use hostname
echo -ne "\ek$CMD\e\\"
fi
if [[ "$TERM" == screen* ]]; then
SCREENTITLE=$'%{\ekzsh\e\\%}'
else
SCREENTITLE=''
fi
case $TERM in (xterm*|rxvt)
print -Pn "\e]9;%n@%m: $l\a"
;;
esac
}
alias ll='ls -la'
alias dasleon.de='ssh -p 12345 dasleon.de'
alias alpine='ssh -p 12345 dasleon.de alpine'
alias dasleon.de-socks='ssh -p 12345 -D 7070 dasleon.de'
alias jave='ssh -p 12345 leonvtippelskirch@jave.mine.nu'
alias LOAD\($\),8,1='ls -la'
alias cd..='cd ..'
alias scpresume="rsync --partial --progress "
export PATH="$PATH:/usr/local/bin:/Volumes/BigData/tippelsk/scripts"
export HISTSIZE=8192
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
export SVN_EDITOR=vim
setopt print_exit_value auto_cd
plugins=(ant git github terminalapp history-substring-search)
source $ZSH/oh-my-zsh.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment