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

# other
alias radio=radish
if ! command -v fd >/dev/null 2>&1; then
    alias fd=fdfind
fi