]> code.delx.au - dotfiles/blob - .bash/environment
bash: ability to use aliases with sudo
[dotfiles] / .bash / environment
1 #! bash
2
3 # This file sets up the environment correctly. It gets run for every shell,
4 # so it must be fast. Also, starting a shell within a shell shouldn't change
5 # the environment. The path manipulation functions are useful for this.
6
7 # Files will be created by default rwx user only
8 umask 0007
9
10 # General environment settings
11 export PAGER="less"
12 export EDITOR="vim"
13 export CVS_RSH="ssh"
14 export RSYNC_RSH="ssh"
15 export PYTHONSTARTUP="${HOME}/.pythonrc.py"
16 export HISTCONTROL="ignoredups"
17 export HISTSIZE="10000"
18 export EMAIL="James Bunton <jamesbunton@delx.net.au>"
19
20 # Expand any symbolic links in the TMPDIR environment variable
21 [ -n "$TMPDIR" ] && export TMPDIR="$(cd "${TMPDIR}" && pwd -P)"
22
23 # Load the bash functions
24 source "${HOME}/.bash/functions"
25
26 # The current directory shouldn't be in the path
27 pathremove .
28
29 # Load local environment settings
30 [ -r "${HOME}/.bash/environment_local" ] && source "${HOME}/.bash/environment_local"
31
32 # ~/bin should be in the front of path if it exists
33 pathprepend "${HOME}/bin"
34