Skip to content

Instantly share code, notes, and snippets.

@buddhike
Last active February 11, 2018 01:54
Show Gist options
  • Save buddhike/fd989680d1d644fd3e38e461a355b572 to your computer and use it in GitHub Desktop.
Save buddhike/fd989680d1d644fd3e38e461a355b572 to your computer and use it in GitHub Desktop.
alias glof='git log --pretty=oneline'
ZSH_THEME="bullet-train"
plugins=(git node npm)
source $ZSH/oh-my-zsh.sh
BULLETTRAIN_PROMPT_ORDER=(
time
status
custom
context
dir
screen
nvm
go
git
cmd_exec_time
)
# Setup vim-mode
bindkey -v
bindkey "jj" vi-cmd-mode
function zle-keymap-select zle-line-init zle-line-finish {
case $KEYMAP in
vicmd) print -n -- "\E]50;CursorShape=0\C-G";; # block cursor
viins|main) print -n -- "\E]50;CursorShape=1\C-G";; # line cursor
esac
zle reset-prompt
zle -R
}
zle -N zle-line-init
zle -N zle-line-finish
zle -N zle-keymap-select
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment