-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_aliases
25 lines (17 loc) · 1.08 KB
/
.bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# easy access to the dotfiles repo
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# typing is bad
alias dc=docker-compose
# add sounds to long-running commands
alias notify_fail='aplay /usr/share/games/scorched3d/data/globalmods/apoc/data/wav/explosions/exp.wav >/dev/null 2>&1'
alias notify_success='aplay /usr/share/games/scorched3d/data/globalmods/apoc/data/wav/misc/extralife.wav >/dev/null 2>&1'
function note() {
$@ && notify_success || notify_fail
}
function say() { echo $@; echo $@ | espeak; echo; }
function clone() { hub clone $1/$2; cd $2; hub remote rename origin upstream; hub fork DavidS; hub remote rename DavidS origin; }
# Thanks, davinci resolve :eyeroll:
function unpack_mov() { ffmpeg -i "$1" -codec:v copy -codec:a pcm_s32le "${1%%.mp4}.mov" && rm "$1" ; }
function repack_mp4() { ffmpeg -i "$1" -codec:v copy -codec:a aac "${1%%.mov}.mp4" && rm "$1" ; }
# for root
# apt update && (apt install -t unstable -V -y code firefox || echo -e '\n=== skipping selective upgrade ===\n') && apt -dy full-upgrade && apt full-upgrade -V && apt autoremove --purge