diff options
author | Colin Walters <walters@verbum.org> | 2010-07-08 13:22:28 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-07-08 13:22:28 -0400 |
commit | 82308f926cb9ce30d958fe04878004fdd6d47849 (patch) | |
tree | 487dfb8eb0a26408f9b02aeb5d43ed931513dcd5 /dotfiles/bashrc | |
download | homegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.tar.gz homegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.tar.xz homegit-MOVED-TO-GNOME-82308f926cb9ce30d958fe04878004fdd6d47849.zip |
Initial commit
Diffstat (limited to 'dotfiles/bashrc')
-rw-r--r-- | dotfiles/bashrc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dotfiles/bashrc b/dotfiles/bashrc new file mode 100644 index 0000000..7abf9bd --- /dev/null +++ b/dotfiles/bashrc @@ -0,0 +1,28 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# User specific aliases and functions + +if [ -f /etc/bash_completion ]; then + . /etc/bash_completion +fi + +shopt -s histappend + +EDITOR="emacsclient" +export EDITOR + +_format_inroot_dir () +{ + if test -n "$INROOT_DIR"; then + echo " [root=$INROOT_DIR]" + fi +} + +PS1='\W$(_format_inroot_dir)$(__git_ps1 " [git %s]") \$ ' +export PS1 + |