Skip to content

Instantly share code, notes, and snippets.

@egore
Last active February 2, 2021 07:57
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 egore/c0246bc4faa6cb31d29f886f656613f6 to your computer and use it in GitHub Desktop.
Save egore/c0246bc4faa6cb31d29f886f656613f6 to your computer and use it in GitHub Desktop.
zshrc similar to my bash preferences
HISTFILE=~/.bash_history
HISTSIZE=1000000
SAVEHIST=1000000
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit promptinit
compinit
promptinit
prompt gentoo
bindkey "^[[5~" history-beginning-search-backward
bindkey "^[[6~" history-beginning-search-forward
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment