]> git.vanrenterghem.biz Git - Dotty.git/blob - bash/.bashrc
b0e4bab4ffdc16b52b825878779e207c28de8ca6
[Dotty.git] / bash / .bashrc
1 #
2 # ~/.bashrc
3 #
5 # If not running interactively, don't do anything
6 [[ $- != *i* ]] && return
8 alias ls='ls --color=auto'
10 git_branch() {
11   git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
12 }
14 PS1="[\u@\h \W]\[\033[00;32m\]\$(git_branch)\[\033[00m\]\$ "
16 unset SSH_AGENT_PID
17 if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
18   export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
19 fi
21 export GPG_TTY=$(tty)
22 gpg-connect-agent updatestartuptty /bye >/dev/null
24 [ -n "$DISPLAY" ] && export BROWSER=firefox || export BROWSER=w3m
26 source /etc/profile.d/nix-daemon.sh
27 export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive