blob: d49c01287aafe292d93a222bb33d71259da52513 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# .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
}
_format_uid ()
{
if test $(id -u) = '0'; then
echo " <uid=0>"
fi
}
PS1='\W$(_format_uid)$(_format_inroot_dir)$(__git_ps1 " [git %s]") \$ '
export PS1
|