Skip to content

Instantly share code, notes, and snippets.

@myyc
Last active December 22, 2019 12:09
Show Gist options
  • Save myyc/b2d7b55a370977d952c4038ccdeed54f to your computer and use it in GitHub Desktop.
Save myyc/b2d7b55a370977d952c4038ccdeed54f to your computer and use it in GitHub Desktop.
source ~/.zplug/init.zsh
zplug "lib/git", from:oh-my-zsh
zplug "lib/history", from:oh-my-zsh
zplug "plugins/colored-man-pages", from:oh-my-zsh, defer:2
zplug "zsh-users/zsh-history-substring-search", defer:2
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-autosuggestions", defer:2
zplug "zplug/zplug", hook-build:"zplug --self-manage"
zplug "geometry-zsh/geometry"
zplug load
# alt + arrow & ctrl + arrow
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word
# substring search with arrows
bindkey "^[[A" history-substring-search-up
bindkey "^[[B" history-substring-search-down
if `which fortune &> /dev/null`; then
echo ""
fortune -o
fi
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment