Last active
February 11, 2018 01:54
-
-
Save buddhike/fd989680d1d644fd3e38e461a355b572 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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