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