blob: 0305d28f0bef6db3396740161e948f23c2165615 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games'
PATH="${HOME}/bin:${PATH}"
# Interactive shells only beyond this point
[ "${PS1+set}" = 'set' ] || return
PATH="${HOME}/ibin:${PATH}"
# Bash history
HISTSIZE=1000
HISTFILESIZE=1000
HISTCONTROL=ignoreboth
shopt -s histappend
# DTRT with "!"
set +H
# Prompt
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]'
if [ -r /etc/debian_chroot ]; then
PS1="${PS1}(\[\033[01;35m\]$(cat /etc/debian_chroot)\[\033[00m\])"
fi
PS1="${PS1}"':\[\033[01;34m\]\w\[\033[00m\]\$ '
# Terminal window title
case "${TERM}" in xterm*|rxvt*)
PS1="\[\e]0;\u@\h:\w\a\]${PS1}"
;;
esac
# Environment
if [ -f ~/.bash_exports ]; then
. ~/.bash_exports
fi
# Aliases and functions
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Completions
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# Set DISPLAY for SSH sessions.
{ read -r DISPLAY 0<~/.xdisplay && export DISPLAY; } 2>/dev/null || :
if ! [ -r /etc/debian_chroot ]; then
for f in $(run-parts --list ~/.bashrc.d); do
. "${f}"
done
fi
|