]> code.delx.au - dotfiles/blob - .bash/environment
bash: Show git branch in prompt, split up PS1 to make reading easier
[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 0077
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
19 # Expand any symbolic links in the TMPDIR environment variable
20 [ -n "$TMPDIR" ] && export TMPDIR="$(cd "${TMPDIR}" && pwd -P)"
21
22 # Load the bash functions
23 source "${HOME}/.bash/functions"
24
25 # The current directory shouldn't be in the path
26 pathremove .
27
28 # Load local environment settings
29 ssource "${HOME}/.bash/environment_local"
30
31 # ~/bin should be in the front of path if it exists
32 pathprepend "${HOME}/bin"
33