4 # If not running interactively, don't do anything
5 [[ $- != *i* ]] && return
7 hash dircolors 2>/dev/null && eval $(dircolors -b)
8 [[ -f $HOME/.bash_alias ]] && . ~/.bash_alias
9 [[ -f /usr/bin/sudo ]] && complete -cf sudo
10 [[ -f /usr/bin/man ]] && complete -cf man
11 [[ -d $HOME/.bash ]] && export PATH=$PATH:$HOME/.bash
15 if hash gpg-agent 2>/dev/null; then
19 if hash gpgconf 2>/dev/null; then
21 if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
22 export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
29 /usr/share/git/git-prompt.sh
30 /usr/share/git-core/contrib/completion/git-prompt.sh
31 /usr/lib/git-core/git-sh-prompt
33 for _i in $_git_prompt_path; do
34 [[ -f $_i ]] && source $_i;
38 # https://misc.flogisoft.com/bash/tip_colors_and_formatting
39 export GIT_PS1_SHOWDIRTYSTATE=1i
40 color1="\[$(tput setaf 7)\]" # \e[32m
41 color2="\[$(tput setaf 6)\]"
42 color3="\[$(tput setaf 2)\]"
43 reset="\[$(tput sgr0)\]"
45 git_ps1() { hash __git_ps1 2>/dev/null && __git_ps1; }
46 export PS1="${color1}\t ${color2}\h:\w${color3}"'$(git_ps1)'" ${color2}\$${reset} "
47 #export LANG="en_US.UTF-8"
51 #if [[ "$(tput colors)" == 256 ]]; then
52 # hash ccal 2>/dev/null && ccal -u