1 # ~/.bashrc: executed by bash(1) for non-login shells.
2 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
5 # If running interactively, then:
8 # don't put duplicate lines in the history. See bash(1) for more options
9 export HISTCONTROL=ignoredups
10 if [ -x ~/bin/sane_editor ]; then
11 EDITOR=~/bin/sane_editor;
12 elif [ -x /usr/bin/jed ]; then
13 EDITOR="/usr/bin/jed";
14 elif [ -x /usr/bin/vi ]; then
18 if [ -n "$EDITOR" ]; then
23 export DEBEMAIL="don@debian.org"
25 # enable color support of ls and also add handy aliases
27 alias ls='ls --color=auto'
28 alias gr='gimp-remote-2.2'
29 alias emc='sane_editor'
32 #printf '\33]2;%s\007'
33 PS1="\[\033[0;36m\]\h \t \w$\[\033[0m\] "
34 # \[\033[1;36m\][\w]\n\[\033[0;36m\][\h|\t]$ \[\033[0m\]
36 # If this is an xterm set the title to user@host:dir
39 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
42 PROMPT_COMMAND='echo -ne "\033]2;${USER}@${HOSTNAME}: ${PWD}\007"'
49 # enable programmable completion features (you don't need to enable
50 # this, if it's already enabled in /etc/bash.bashrc).
51 if [ -f /etc/bash_completion ]; then
52 . /etc/bash_completion;
56 if which ssh-agent >/dev/null && [ -d ~/.ssh ]; then
58 if [ -e ~/.ssh/ssh_agent_info ] && \
59 [ -n "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info)" ] && \
60 kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info)" >/dev/null 2>&1; then
61 . ~/.ssh/ssh_agent_info > /dev/null
62 elif [ -e ~/.ssh/ssh_agent_info_$(hostname) ] && \
63 kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info_$(hostname))" >/dev/null 2>&1; then
64 . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null
66 ssh-agent -s > ~/.ssh/ssh_agent_info_$(hostname)
67 . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null
71 alias aumix2='aumix -d /dev/mixer1 -I'
72 if locale -a |grep -qi en_US.utf8; then
78 export PATH="~/bin:$PATH"
79 if [ ! -e ~/tmp ]; then
82 export TMPDIR="$(echo ~/tmp)";
84 if [ -n "$(which devtodo)" ]; then
85 for a in tda tdd tde; do
86 alias "s${a}"="STODO_NO_COMMIT=1 $a"
89 TODO_OPTIONS="--timeout --summary"
93 builtin cd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
98 builtin pushd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
103 builtin popd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
106 # Run todo initially upon login
107 devtodo ${TODO_OPTIONS}