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

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

# other
alias radio=radish

# `fd' installs as `fdfind' on some systems
if ! command -v fd >/dev/null 2>&1 &&
		command -v fdfind >/dev/null 2>&1
then
	alias fd=fdfind
fi

alias e="$EDITOR"

## ffmpeg
# agafnd | i have ffmpeg and ffprobe aliased to ffwhatever -hide_banner
# agafnd | because if you don't do this it spits out all of the options it was
#        | configured with every time you run it

alias ffmpeg='ffmpeg -hide_banner'
alias ffprobe='ffprobe -hide_banner'