]> git.vanrenterghem.biz Git - Dotty.git/blobdiff - bash/.bashrc
Voeg Zathura Emacs keybindings toe.
[Dotty.git] / bash / .bashrc
index 84ee2e478907d829fe2d82f340971c5c64008a3c..12b51840e0a52f24eb53c3204185a44cf145a3c5 100644 (file)
@@ -6,7 +6,12 @@
 [[ $- != *i* ]] && return
 
 alias ls='ls --color=auto'
 [[ $- != *i* ]] && return
 
 alias ls='ls --color=auto'
-PS1='[\u@\h \W]\$ '
+
+git_branch() {
+  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
+}
+
+PS1="[\u@\h \W]\[\033[00;32m\]\$(git_branch)\[\033[00m\]\$ "
 
 unset SSH_AGENT_PID
 if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
 
 unset SSH_AGENT_PID
 if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
@@ -16,3 +21,14 @@ fi
 export GPG_TTY=$(tty)
 gpg-connect-agent updatestartuptty /bye >/dev/null
 
 export GPG_TTY=$(tty)
 gpg-connect-agent updatestartuptty /bye >/dev/null
 
+[ -n "$DISPLAY" ] && export BROWSER=firefox || export BROWSER=w3m
+
+source /etc/profile.d/nix-daemon.sh
+export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
+
+# Initialise pyenv
+export PYENV_ROOT="$HOME/.pyenv"
+[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
+eval "$(pyenv init -)"
+
+export PATH="$PATH:$HOME/scripts"