]> git.donarmstrong.com Git - home-base.git/blob - .bashrc
update home-base and home-full
[home-base.git] / .bashrc
1 # ~/.bashrc: executed by bash(1) for non-login shells.
2 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
3 # for examples
4
5 # If running interactively, then:
6 if [ "$PS1" ]; then
7
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
15         EDITOR="/usr/bin/vi";
16     fi;
17
18     if [ -n "$EDITOR" ]; then
19         export EDITOR;
20     fi;
21     # bts debian options
22
23     export DEBEMAIL="don@debian.org"
24
25     # enable color support of ls and also add handy aliases
26     eval `dircolors -b`
27     alias ls='ls --color=auto'
28     alias gr='gimp-remote-2.2'
29     alias emc='sane_editor'
30
31     # set a fancy prompt
32     PS1='\u@\h:\w\$ '
33
34     # If this is an xterm set the title to user@host:dir
35     #case $TERM in
36     #xterm*)
37     #    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
38     #    ;;
39     #*)
40     #    ;;
41     #esac
42
43     # enable programmable completion features (you don't need to enable
44     # this, if it's already enabled in /etc/bash.bashrc).
45     if [ -f /etc/bash_completion ]; then
46       . /etc/bash_completion;
47     fi;
48     
49     alias aumix2='aumix -d /dev/mixer1 -I'
50     export LANG="en_US.UTF-8"
51     export PATH="~/bin:$PATH"
52
53     TODO_OPTIONS="--timeout --summary"
54
55     cd ()
56     {
57         builtin cd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
58     }
59
60     pushd ()
61     {
62         builtin pushd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
63     }
64     
65     popd ()
66     {
67         builtin popd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
68     }              
69     
70     # Run todo initially upon login
71     devtodo ${TODO_OPTIONS}
72
73 fi