]> code.delx.au - dotfiles/blob - .bash/environment
Better bash colour detection code.
[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 # Load the bash functions
20 source "${HOME}/.bash/functions"
21
22 # The current directory shouldn't be in the path
23 pathremove .
24
25 # Load local environment settings
26 ssource "${HOME}/.bash/environment_local"
27
28 # ~/bin should be in the front of path if it exists
29 pathprepend "${HOME}/bin"
30