Skip to content

Instantly share code, notes, and snippets.

@mmagm
Created April 9, 2012 12:11
Show Gist options
  • Save mmagm/2343084 to your computer and use it in GitHub Desktop.
Save mmagm/2343084 to your computer and use it in GitHub Desktop.
zshrc backup config
#!/bin/zsh
HISTFILE=~/.histfile
HISTSIZE=1000000
SAVEHIST=100000
bindkey -e
# completion
autoload -U compinit
compinit
# correction
# setopt correctall
autoload -U colors
colors
# prompt
autoload -U promptinit
promptinit
PS1="%{%F{green}%}%n%{%f%}@%{%F{green}%}%m %{%F{yellow}%}%1~ %{$%f%}%% "
#key bindings
bindkey '\eOH' beginning-of-line
bindkey '\eOF' end-of-line
bindkey '\e[1;5C' forward-word
bindkey '\e[1;5D' backward-word
bindkey '\e[3~' delete-char
bindkey '\e[5~' history-search-backward
bindkey '\e[6~' history-search-forward
#konsole
bindkey '\e[H' beginning-of-line
bindkey '\e[F' end-of-line
bindkey '\e[1;3C' forward-word
bindkey '\e[1;3D' backward-word
#
#tty
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
#bindkey '\e[C' forward-word
#bindkey '\e[D' backward-word
#
eval `dircolors`
if [ "$TERM" != "dumb" ]; then
alias ls='ls --color=auto'
alias grep='grep --color=auto'
fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
export RUBYOPT=''
get_upd_pkgs() {
eix -cI | grep '\[U\]' | awk '{ print $2" " }'
}
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment