blob: 18cd7d29ec3d26aab74dc6f1c81d6c574125aed9 (
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
47
48
49
50
51
52
53
|
# Bash aliases
# sudo
sudo_cmds=(
shutdown
reboot
halt
mount
umount
visudo
)
for cmd in "${sudo_cmds[@]}"; do
if command -v sudo >/dev/null 2>&1; then
alias $cmd="sudo $cmd"
elif command -v doas >/dev/null 2>&1; then
alias $cmd="doas $cmd"
alias sudo=doas
fi
done
# LS
alias ls='ls -F --color=never'
alias ll='ls -l'
# tree
#alias tree='tree -F'
# make locally
alias lake='make PREFIX=$LOCAL_PREFIX '
# 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"
alias crontab='env EDITOR=ed VISUAL=vi crontab'
## 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'
|