774cddb42d9d18ea7f9e841f40c72de402b4d64c
[profile.git] / .profile.d / variables.bashrc
1 # $Id$
2 export SSHTERM=urxvtc
3 export SSHTERM_TITLE=-title
4 export SSHTERM_EXEC=-e
5 unset LANG
6 export LC_CTYPE=en_GB
7 if ls --help 2>/dev/null | grep gnu.org >/dev/null; then
8   export LS_OPTIONS="--color=auto -F -b --time-style=long-iso"
9 elif [ "$SYSTEM" = "Darwin" ]; then
10   export LS_OPTIONS="-G -F -b"
11 fi
12 export VISUAL=vim
13 eval `dircolors 2>/dev/null` 2>/dev/null
14 unset XMODIFIERS #:-(
15 export SSHTERM="urxvt"
16 export SSHTERM_TITLE="-title"
17 export SSHTERM_EXEC="-e"
18 export GREP_COLOR='0;33'
19 # cx: Lines of context; sl: Matching lines; mt: Search string; fn: Filename
20 # ln: Line number; bn: Byte offset; se: Separators.
21 colours=$(tput colors)
22 if [ $colours = 256 ]; then
23   export GREP_COLORS='cx=38;5;246:sl=:mt=33:fn=38;5;25:ln=38;5;82:bn=33:se=38;5;246'
24 elif [ $colours -gt 88 ]; then
25   export GREP_COLORS='cx=38;5;84:sl=:mt=33:fn=38;5;22:ln=38;5;44:bn=33:se=38;5;84'
26 else
27   export GREP_COLORS='cx=31:sl=:mt=33:fn=36:ln=34:bn=33:se=31'
28 fi
29 export SCREENDIR="$HOME/.screen/$HOSTNAME"
30 #mkdir -p "$SCREENDIR"