Skip to content

Instantly share code, notes, and snippets.

@marcusway
Created March 26, 2019 01:37
Show Gist options
  • Save marcusway/ceb8fa509cc5d5ea7b8c4ca21af93667 to your computer and use it in GitHub Desktop.
Save marcusway/ceb8fa509cc5d5ea7b8c4ca21af93667 to your computer and use it in GitHub Desktop.
source $HOME/antigen.zsh
# Load antigen bundles
antigen use oh-my-zsh
antigen bundle git
antigen bundle zsh-users/zsh-syntax-highlighting
antigen theme af-magic
# Appearance
export CLICOLOR=1
export TERM="xterm-256color"
export SHELL="/usr/local/bin/zsh"
# Keyboard navigation
bindkey -v
function zle-line-init zle-keymap-select {
VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $(gshuf -n 1 /usr/share/dict/words)"
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
export KEYTIMEOUT=1
bindkey '^P' up-history
bindkey '^N' down-history
bindkey '^?' backward-delete-char
bindkey '^h' backward-delete-char
bindkey '^w' backward-kill-word
bindkey '^r' incremental-search-backward
# Aliases
alias ptipython="ptipython --vi"
# PATH stuff
export PATH="$HOME/bin:/usr/local/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment