aboutsummaryrefslogtreecommitdiff
path: root/dot_config/sh/aliases
blob: f96d5d7796298304ed29e555679febe98fc8a32b (plain) (blame)
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
alias apt-upgrade='sudo apt-get update && sudo apt-get dist-upgrade'

alias 1920s='mplayer -playlist http://kara.fast-serv.com:8398/listen.pls'
alias dismuke='mplayer -playlist https://early1900s.org/radiodismuke/radiodismuke.pls'
alias wzum='mplayer http://pubmusic.streamguys1.com/wzum-aac'

alias mplayer-fb='mplayer -vo fbdev'
alias links2-fb='links2 -driver fb'

alias itp='reportbug -M -B debian --email rak@debian.org --paranoid -K $GPGKEY wnpp'
alias gibuild='gbp buildpackage --git-builder="sbuild -sAd u"'
alias gibuildi='gbp buildpackage --git-ignore-new --git-builder="sbuild -sAd u"'
alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"

alias vi='vim'

alias sm='tmux attach -t mail || tmux -f ${HOME}/.tmux-mail.conf attach -t mail'
alias sshfw='ssh -oForwardAgent=yes'

alias llocate="locate -d ${XDG_STATE_HOME}/plocate/home.db"

# Alias/custom commands
#
# Many of these options don's exist on BSD rm/cp/mkdir/ln/etc.
#
# Some are just in case - for 'rm', 'cp' and 'mv' - ask about overwriting or
# deleting files.
# Furthermore, be verbose about what each command is performing to be present of
# what is occuring every time.
if [[ `uname` = "Linux" ]]; then
    alias cp="cp -iv"
    alias mkdir="mkdir -v"
    alias mv="mv -iv"
    alias ln="ln -v"
    # Only delete files on the current file system to avoid removing recursively
    # from bind mounts.
    alias rm="rm -iv --one-file-system"

    alias grep="grep --colour=auto"

    alias chown="chown -v"
    alias chmod="chmod -v"
    alias ls="ls --classify --color=always" # Add all colours and
                                            # have fancy symbols for files, etc.
elif [[ `uname` = "OpenBSD" && -x /usr/local/bin/colorls ]]; then
    alias ls="colorls -G"
fi

# vim: set ft=sh: