# aliases alias ll='ls -lha --color' alias ga='git add --verbose' alias gc='git commit --verbose' alias gco='git checkout' alias gf='git fetch --verbose --prune' alias gl='git log --graph --all --oneline' # ZSH completion autoload -U compinit; compinit # Prompt customization setopt PROMPT_SUBST autoload -U colors && colors autoload -Uz vcs_info precmd() { vcs_info } zstyle ':vcs_info:git:*' formats '%b ' PS1='%F{green}%D{%H:%M}%f %{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %F{yellow}%1~%f%F{cyan} ${vcs_info_msg_0_}%f$ ' # Search facilities bindkey '^[[A' history-beginning-search-backward bindkey '^[[B' history-beginning-search-forward # Share history between shells setopt SHARE_HISTORY export GPG_TTY=$(tty)