1 # Configuration file for environment related options for all shells.
4 source_debug ". ~/.shell/env"
7 # Use UTF-8 encoding in the terminal. Don't use LC_ALL as it's used for
8 # debugging purposes. Thanks to twb in Freenode/#screen (2009-10-02 10:25).
12 # Add ~/bin and ~/.bin and ~/.shell/bin to PATH if available.
13 if [ -d ~/.shell/bin ]; then
14 PATH=~/.shell/bin:$PATH
19 if [ -d ~/.bin ]; then
27 # Set less as pager, its configuration is done through the .less file.
31 # Use ~/tmp as directory for temporary files if available to reduce security
32 # problems on multi-user systems.
33 if [ -O ~/tmp -a -d ~/tmp ]; then
37 export TMP TEMP TMPDIR
40 # Change rlwrap's home directory to prevent cluttering ~.
41 RLWRAP_HOME=~/.shell/rlwrap
44 # Set colors for GNU ls (and zsh completions).
45 # See `dircolors --print-database` for possible colors.
47 LS_COLORS=$LS_COLORS':fi=00' # normal files: normal
48 LS_COLORS=$LS_COLORS':di=34;01' # directories: blue bold
49 LS_COLORS=$LS_COLORS':ln=36' # symbolic links: cyan
50 LS_COLORS=$LS_COLORS':pi=00' # named pipes: normal
51 LS_COLORS=$LS_COLORS':so=00' # sockets: normal
52 LS_COLORS=$LS_COLORS':bd=00' # block devices: normal
53 LS_COLORS=$LS_COLORS':cd=00' # character devices: normal
54 LS_COLORS=$LS_COLORS':or=36;41' # orphaned links: red background
55 LS_COLORS=$LS_COLORS':su=31;01;43' # setuid files: yellow background
56 LS_COLORS=$LS_COLORS':sg=31;01;43' # setgid files: yellow background
57 LS_COLORS=$LS_COLORS':ow=34;01;41' # directories writable by others: blue background
58 LS_COLORS=$LS_COLORS':ex=31;01' # executables: bold red
60 # Set the same colors for non GNU ls, except for orphaned links which aren't
62 LSCOLORS='ExgxxxxxBxxxxxBdBdExEb'
63 # ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
64 # | | | | | | | | | | |
65 # | | | | | | | | | | *- directory writable to others, without sticky bit
66 # | | | | | | | | | *--- directory writable to others, with sticky bit
67 # | | | | | | | | *----- executable with setgid bit set
68 # | | | | | | | *------- executable with setuid bit set
69 # | | | | | | *--------- character special
70 # | | | | | *----------- block special
71 # | | | | *------------- executable
72 # | | | *--------------- pipe
73 # | | *----------------- socket
74 # | *------------------- symbolic link
75 # *--------------------- directory
79 source_debug ". ~/.shell/env (done)"