Skip to content

Instantly share code, notes, and snippets.

@ap-Codkelden
Created February 2, 2014 10:21
Show Gist options
  • Save ap-Codkelden/8766007 to your computer and use it in GitHub Desktop.
Save ap-Codkelden/8766007 to your computer and use it in GitHub Desktop.
. /etc/environment
# key bindings
# setup key accordingly
[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
bindkey "\e[3~" delete-char
bindkey ';5C' emacs-forward-word
bindkey ';5D' emacs-backward-word
# instead of rebuild cache use
zstyle ":completion:*:commands" rehash 1
# sound?
alsactl restore
zmodload zsh/zprof
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
zstyle ':completion:*' menu select=1
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl true
zstyle ':completion:*' verbose true
zstyle ":completion:*:commands" rehash 1
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit
compinit
#autoload zkbd
#[[ ! -f $HOME/.zkbd/$TERM-$VENDOR-$OSTYPE ]] && zkbd
#source $HOME/.zkbd/$TERM-$VENDOR-$OSTYPE
#autoload predict-on
#zle -N predict-on
#zle -N predict-off
#bindkey '^Z' predict-on
#bindkey '^X^Z' predict-off
#zstyle ':predict' verbose true
dot() {
if [[ $LBUFFER = *.. ]]; then
LBUFFER+=/..
else
LBUFFER+=.
fi
}
autoload -U dot
zle -N dot
bindkey . dot
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=10000
EDITOR=nano
setopt appendhistory notify
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt extendedglob
setopt autocd
unsetopt beep nomatch
bindkey -e
# End of lines configured by zsh-newuser-install
autoload -U promptinit && promptinit
PROMPT=$'%{\e[0;32m%}[%{\e[0;37m%}%n@%m%{\e[0m%} %{\e[1;34m%}%2~%{\e[0;32m%}] %{\e[1;31m%}%#%{\e[0m%} '
RPROMPT=$'%{\e[0;32m%}[%{\e[0;37m%}%*%{\e[0;32m%}]%{\e[0m%}'
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
[ -f ~/.rvm ] && source ~/.rvm/scripts/rvm &&
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
#PATH=/usr/local/texlive/2013/bin/x86_64-linux:$PATH
PATH=/home/rino/.gem/ruby/2.0.0/bin:$PATH
# Aliases
alias ls='ls --color'
# environment
# GTK_IM_MODULE=xim
# QT_IM_MODULE=xim
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment