-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.sh
executable file
·29 lines (22 loc) · 915 Bytes
/
home.sh
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
##
## Mike's home config file
##
#-------------------------------------------------------------------------------
# functions
# Download a video or playlist from youtube to an mp3
function ytd {
youtube-dl -o '%(title)s.%(ext)s' --format best --ignore-errors --yes-playlist -x --audio-format mp3 --audio-quality 192k "$1"
}
function ytdv {
youtube-dl -o '%(title)s.%(ext)s' --ignore-errors --yes-playlist --recode-video mp4 "$1"
}
#-------------------------------------------------------------------------------
# aliases
alias cdJ="cd ~/Documents/job"
alias cdmtb="cd ~/code/rails/movie-trailer-bingo"
alias cda="cd ~/code/actionizer"
alias cder="cd ~/code/elixir/rumbl"
#-------------------------------------------------------------------------------
# games
export D2_SAVE_DIR="/Applications/Games.localized/Diablo 2.app/Contents/Resources/drive_c/Program Files/Diablo II/Save"
cdd2="cd $D2_SAVE_DIR"