Skip to content

Instantly share code, notes, and snippets.

@eblocha
Last active August 23, 2022 23:45
Show Gist options
  • Save eblocha/a8b2629b7d0af1aa7738436899a0170d to your computer and use it in GitHub Desktop.
Save eblocha/a8b2629b7d0af1aa7738436899a0170d to your computer and use it in GitHub Desktop.
Oh-My-ZSH themes and plugins
DIR_COLORS="$HOME/.dir_colors"
eval "`dircolors -b $DIR_COLORS`"
unalias ls
unalias lsa
alias ls="ls --color=tty -F"
alias la="ls -Ah"
alias lla="ls -lAh"
# My personal git aliases that I actually use
alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'"
alias glols="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat"
alias glola="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all"
alias glog='git log --oneline --decorate --graph'
alias gloga='git log --oneline --decorate --graph --all'
alias gstat='git status'
PROMPT='[%{$fg_bold[white]%}%n%{$reset_color%}@%{$FG[008]%}%m%{$reset_color%} %{$fg_bold[blue]%}%c%{$reset_color%} $(git_prompt_info)%{$reset_color%}]$ '
ZSH_THEME_GIT_PROMPT_PREFIX="(%{$FG[009]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[009]%} %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment