Skip to content

Instantly share code, notes, and snippets.

@vvksh
Created August 19, 2021 20:00
Show Gist options
  • Save vvksh/d77b405d2f3d6b6b42a328a4c9a244e3 to your computer and use it in GitHub Desktop.
Save vvksh/d77b405d2f3d6b6b42a328a4c9a244e3 to your computer and use it in GitHub Desktop.
# add this in the zshrc generated by oh-my-zsh
alias gs="git status"
alias gd="git diff"
#other aliases
# alias build_proj_a="bazel build //src/proj/a/..."
# use: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting to install zsh-syntax-highlighting plugin
plugins=(git zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh # need to activate plugins
export ZSH_HIGHLIGHT_MAXLENGTH=60 #fixes the paste problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment