]> code.delx.au - dotfiles/blob - .bash_profile
Bigger history is nicer for ^R
[dotfiles] / .bash_profile
1 # Run for login shells. That is, once when you log in via SSH this is run
2 # to set up your environment variables such as PATH, etc. It then calls
3 # .bashrc to set up aliases or prompts.
4 # Copy this around to all your machines and make machine specific
5 # customisations to ~/.bash_profile_local
6
7 unset RUN_BASH_PROFILE
8
9 # Source the global profile
10 [ -r /etc/profile ] && source /etc/profile
11
12 # rwx user only
13 umask 0077
14
15 # Environment variables that may be overidden in .bash_profile_local
16 export PAGER="less"
17 export EDITOR="vim"
18 export CVS_RSH="ssh"
19 export RSYNC_RSH="ssh"
20 export PYTHONSTARTUP="$HOME/.pythonrc.py"
21 export HISTCONTROL="ignoredups"
22 export HISTSIZE="10000"
23
24 # Local customisations
25 [ -f ~/.bash_profile_local ] && source ~/.bash_profile_local
26
27 # Never want to override this, and we want ~/bin at the front of PATH
28 export PATH="$(echo "$PATH" | sed -e 's/:.:/:/g')"
29 export PATH="$HOME/bin:$PATH"
30
31 # Interactive mode stuff
32 [ -r ~/.bashrc ] && source ~/.bashrc
33