ipv6 kernel parameters
[dotFiles.git] / .bashrc
blob6b3a3496001206bbf96f6bf6a28def009181728d
1 # ~/.bashrc
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
14 # GPG_TTY
15 if hash gpg-agent 2>/dev/null; then
16     export GPG_TTY=$(tty)
18 # gpgconf
19 if hash gpgconf 2>/dev/null; then
20     unset SSH_AGENT_PID
21     if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
22         export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
23     fi
27 # source git-prompt
28 _git_prompt_path="
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;
35 done
37 # bash prompt color
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}"'$(shopt -q login_shell && git_ps1)'" ${color2}\$${reset} "
47 #export LANG="en_US.UTF-8"
50 # run ccal
51 #if [[ "$(tput colors)" == 256 ]]; then
52 #    hash ccal 2>/dev/null && ccal -u
53 #fi