# aliases alias ll='ls -lha --color' alias ga='git add --verbose' alias gc='git commit --verbose' alias gf='git fetch --verbose --prune' alias gl='git log --graph --all --oneline' # Prompt customization parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/' } PS1='\[\033[32m\]\t\[\033[0m\] \[\033[31m\]\u\[\033[0m\]@\[\033[34m\]\h\[\033[0m\] \[\033[33m\]\W\[\033[0m\]\[\033[36m\]$(parse_git_branch)\[\033[0m\] $ ' # History and search settings shopt -s histappend PROMPT_COMMAND="history -a; history -n" # Searh facilities bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' export GPG_TTY=$(tty)