Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

.zshrc



Here are my files for the zsh.

in $HOME:

# ~/.zshenv
# ZDOTDIR
ZDOTDIR=$HOME/.zsh

# Load ~/.zsh/.zshenv
source $ZDOTDIR/.zshenv

in $HOME/.zsh:

# ~/.zsh/zsh-aliases
alias cls='clear'
alias cp='cp -i'
alias ll='ls -al --color=auto'
alias l='ls -al --color=auto'
alias ls='ls -F --color=auto'
alias sc='screen -U'
alias sl='screen -ls'
alias sr='screen -rU'
alias sx='screen -xU'
alias vi='vim'
alias x='exit'

# ~/.zsh/zsh-miscs

# EMACS-bindings - use -v for vi-bindings
bindkey -e
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
case $TERM in (xterm*)
        bindkey '\e[H' beginning-of-line
        bindkey '\e[F' end-of-line ;;
esac

# My Prompt - switch username color to red if you're root (via sudo -s or su)
if test "$UID" = 0; then
  PS1=$'%{\e[0;35m%}[%{\e[0;31m%}%n%{\e[0;35m%}@%{\e[0;33m%}%m%{\e[0m%}%{\e[0;35m%}] %{\e[0;36m%}%20<..<%~%B%{\e[0;35m%}>%b %{\e[0m%}'
else
  PS1=$'%{\e[0;35m%}[%{\e[0;32m%}%n%{\e[0;35m%}@%{\e[0;33m%}%m%{\e[0m%}%{\e[0;35m%}] %{\e[0;36m%}%20<..<%~%B%{\e[0;35m%}>%b %{\e[0m%}'
fi

# ~/.zsh/zsh-modules

# completion
autoload -U compinit
compinit

# mmv for zsh
zmodload -i zsh/complist

# COLORS!
autoload -U colors
colors

# be my augur
autoload -U predict-on
zle -N predict-on
zle -N predict-off
bindkey "^X^Z" predict-on ## C-x C-z
bindkey "^Z" predict-off ## C-z

# don't ask me 'do you wish to see all XX possibilities' before menu selection
LISTPROMPT=''

# SPROMPT - the spelling prompt
SPROMPT='zsh: correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) '

# ~/.zsh/zsh-options

setopt    APPEND_HISTORY
setopt    AUTO_CD
setopt    AUTO_LIST
setopt    AUTO_MENU
setopt    AUTO_PARAM_KEYS
setopt    AUTO_PARAM_SLASH
setopt    AUTO_PUSHD
setopt    AUTO_RESUME
setopt NO_BEEP
setopt    BRACE_CCL
setopt    EQUALS
setopt    NO_FLOW_CONTROL
setopt    EXTENDED_GLOB
setopt    EXTENDED_HISTORY
setopt    HIST_IGNORE_ALL_DUPS
setopt    HIST_IGNORE_DUPS
setopt    HIST_IGNORE_SPACE
setopt    HIST_NO_STORE
setopt    HIST_REDUCE_BLANKS
setopt    HIST_VERIFY
setopt NO_HUP
setopt    INTERACTIVE_COMMENTS
setopt    LIST_PACKED
setopt    LIST_ROWS_FIRST
setopt    LIST_TYPES
setopt    LONG_LIST_JOBS
setopt    MAGIC_EQUAL_SUBST
setopt    MARK_DIRS
setopt    MULTIOS
setopt    NUMERIC_GLOB_SORT
setopt    PRINT_EIGHT_BIT
setopt    PROMPT_CR
setopt    PROMPT_SUBST
setopt    PUSHD_IGNORE_DUPS
setopt    RC_EXPAND_PARAM
setopt    SHARE_HISTORY
setopt    SHORT_LOOPS
setopt    TRANSIENT_RPROMPT

# ~/.zsh/.zshenv

export CLICOLOR="YES"
export EDITOR='vim'
export CLICOLOR_FORCE="YES";
export HISTCONTROL="ignoredups"
export HISTIGNORE="&:ls:rm *:[bf]g:exit:l:more *:m *:history::cd:..:pine:top:clear"
export HISTFILESIZE=2000
export EDITOR='/usr/bin/vim'
export SHELL='/bin/zsh'


LS_COLORS='no=00;32:fi=00:di=00;34:ln=01;36:pi=04;33:so=01;35:bd=33;04:cd=33;04:or=31;01:ex=00;32:*.
rtf=00;33:*.txt=00;33:*.html=00;33:*.doc=00;33:*.pdf=00;33:*.ps=00;33:*.sit=00;31:*.hqx=00;31:*.bin=
00;31:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.
gz=00;31:*.deb=00;31:*.dmg=00;36:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=0
0;35:*.xpm=00;35:*.tif=00;35:*.mpg=00;37:*.avi=00;37:*.gl=00;37:*.dl=00;37:*.mov=00;37:*.mp3=00;35:'
export LS_COLORS;

# ~/.zsh/.zshrc

# Load files
# Options
if [ -f $ZDOTDIR/zsh-options ]; then
source $ZDOTDIR/zsh-options
fi

# Aliases
if [ -f $ZDOTDIR/zsh-aliases ]; then
source $ZDOTDIR/zsh-aliases
fi

# Modules
if [ -f $ZDOTDIR/zsh-modules ]; then
source $ZDOTDIR/zsh-modules
fi

# Miscs.
if [ -f $ZDOTDIR/zsh-miscs ]; then
source $ZDOTDIR/zsh-miscs
fi