summaryrefslogtreecommitdiff
path: root/.bash_aliases
blob: 0788501e9e19ccae49d7a68b041836558188c492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# The above line probably should never be *used* in this file, but it
# lets editors know that this is BASH syntax.

######################################################################
# Set up colors and settings for ls/dir/vdir                         #
######################################################################
if [ -x "`which dircolors`" ]; then
    eval "`dircolors -b`"
    alias ls='ls -1v --color=auto'
    alias dir='dir -v --color=auto'
    alias vdir='vdir -v--color=auto'

    for xgrep in ${PATH//:/\/*grep }/*grep; do
        if [ -f "$xgrep" ]; then
            xgrep=`basename "$xgrep"`
	    if [ "$xgrep" != pgrep ]; then
		alias $xgrep="$xgrep --color=auto"
	    fi
        fi
    done
else
    alias ls='ls -1v'
    alias dir='dir -v'
    alias vdir='vdir -v'
fi

######################################################################
# Set up the standard aliases for ls                                 #
######################################################################
alias ll='ls -l'
alias la='ls -a'
alias l='ls -CF'

######################################################################
# Some preferences for miscellaneous stuff                           #
######################################################################
#alias rm='gvfs-trash'
alias ssh='ssh -XC'
alias sed='sed --follow-symlinks'
alias tree='tree --charset utf8'

######################################################################
# Remember lat/long for redshift                                     #
######################################################################
redshift='redshift -l39.9030:85.9979'
alias gtk-redshift="gtk-$redshift"
alias redshift="$redshift"

######################################################################
# Some almost-function aliases                                       #
######################################################################
#alias serva='ssh luke@servb.ath.cx -p3440'
#alias phpdoctor='php /usr/gnu/www/0-other/phpdoctor-head/phpdoc.php'
function xterm-title () { echo "];$@"; } # Oh, wait this one is
alias lock="clear; away -C 'This terminal is locked'"
alias plock="xterm-title Terminal Locked;lock"

######################################################################
# Other                                                              #
######################################################################
case "$TERM" in
	eterm*) alias editor='editor -n';;
esac