summaryrefslogtreecommitdiff
path: root/.bash_aliases
blob: 867d6cc33e4d60d5624e3865b31c367383df0589 (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
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    eval "`dircolors -b`"
    alias ls='ls -1v --color=auto'
    alias dir='dir -v --color=auto'
    alias vdir='vdir -v--color=auto'

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

# some more ls aliases
alias ll='ls -l'
alias la='ls -a'
alias l='ls -CF'

#alias rm='gvfs-trash'
alias ssh='ssh -XC'
alias sed='sed --follow-symlinks'

redshift='redshift -l39.9030:85.9979'
alias gtk-redshift="gtk-$redshift"
alias redshift="$redshift"

alias serva='ssh luke@servb.ath.cx -p3440'
alias tree='tree --charset utf8'
alias phpdoctor='php /usr/gnu/www/0-other/phpdoctor-head/phpdoc.php'