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