about summary refs log tree commit diff stats
path: root/bash/aliases.bash
blob: 78755746390b63d90b08595ed168c0c97b6c2b93 (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
# Bash aliases

# sudo
sudo_cmds=(
    shutdown
    reboot
    halt
    mount
    umount
    visudo
)
for cmd in "${sudo_cmds[@]}"; do
    alias $cmd="sudo $cmd"
done

# LS
alias ls='ls -F --color=never'
alias ll='ls -l'
# tree
alias tree='tree -F'

# make locally
alias lake='make PREFIX=~/usr'

# bash meta
alias rebash='source ~/.bash_profile'

# Debugging
alias emacs_goddamnit='pushd ~/.emacs.d;emacs --debug-init;popd'