Skip to content

Instantly share code, notes, and snippets.

@niko niko/zshrc
Last active Apr 8, 2018

Embed
What would you like to do?
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' completions 1
zstyle ':completion:*' glob 1
zstyle ':completion:*' max-errors 0
zstyle ':completion:*' prompt 'errors: %e '
zstyle ':completion:*' substitute 1
zstyle :compinstall filename '/home/niko/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
setopt autocd beep notify
bindkey -v
# End of lines configured by zsh-newuser-install
export LANG=de_DE.utf8
export XKB_DEFAULT_LAYOUT=de
export XKB_DEFAULT_MODEL=pc105
# autoload -Uz promptinit
# promptinit
# prompt suse
setopt prompt_subst
function precmd {
TIME=$(date +'%H:%M:%S')
if [ $TIMER ]; then
TIMER_SHOW=$(($SECONDS - $TIMER))
fi
}
function preexec() {
TIMER=${TIMER:-$SECONDS}
}
PROMPT='${TIMER_SHOW} %(?.%F{green} %% %f.%F{red} %?%% %f)'
RPROMPT='%F{yellow}%3~%f %F{red}%n%f %j %F{blue}${TIME}%f'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey "^[[1;5A" beginning-of-line
bindkey "^[[1;5B" end-of-line
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey '^[[A' up-line-or-search
bindkey '^[[B' down-line-or-search
PATH=$HOME/subuser/logic:$HOME/.subuser/bin:$PATH
source .zsh_opts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.