Created
April 9, 2012 12:11
-
-
Save mmagm/2343084 to your computer and use it in GitHub Desktop.
zshrc backup config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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