Skip to content

Instantly share code, notes, and snippets.

@tesfabpel
Created July 27, 2023 13:12
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 tesfabpel/79dcbfd55eda009d9857d252603b5e04 to your computer and use it in GitHub Desktop.
Save tesfabpel/79dcbfd55eda009d9857d252603b5e04 to your computer and use it in GitHub Desktop.
My zshrc
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
PROMPT="%F{10}%B[%n@%m %f%b%~%B%F{10}]%f%b$ "
bindkey '^P' history-search-backward
bindkey '^N' history-search-forward
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
bindkey '^[[3~' delete-char
bindkey ';5D' backward-word
bindkey ';5C' forward-word
bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
bindkey -s '^[[1;5H' ''
bindkey -s '^[[1;5F' ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment