Skip to content

Instantly share code, notes, and snippets.

@niko
Last active April 8, 2018 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niko/4420c9b1813a362cedee82718db8fcb1 to your computer and use it in GitHub Desktop.
Save niko/4420c9b1813a362cedee82718db8fcb1 to your computer and use it in GitHub Desktop.
# 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