# 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'