1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-04-26 03:45:21 -04:00

git=hub and youtube-dl aliases

This commit is contained in:
Jake Jarvis 2019-09-15 09:38:20 -04:00
parent f40a23352c
commit 1d358cda17
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
3 changed files with 19 additions and 5 deletions

View File

@ -10,15 +10,18 @@
gpgsign = true
[push]
default = current
[pull]
rebase = true
[core]
editor = nano
excludesfile = ~/.gitignore_global
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
smudge = git-lfs smudge -- %f
clean = git-lfs clean -- %f
process = git-lfs filter-process
[github]
user = jakejarvis
[pull]
rebase = true
[hub]
host = github.com
host = git.jarv.is

View File

@ -33,7 +33,7 @@ chsh -s $(which zsh)
# Set up symbolic links for ZSH and Git pointing to this cloned repo
ln -s $HOME/.dotfiles/zsh/.zshrc $HOME/.zshrc
ln -s $HOME/.dotfiles/git/.gitconfig $HOME/.gitconfig
ln -s $HOME/.dotfiles/zsh/git/.gitignore_global $HOME/.gitignore_global
ln -s $HOME/.dotfiles/git/.gitignore_global $HOME/.gitignore_global
# Set macOS defaults
# Needs to be last since this will restart everything when done

View File

@ -51,6 +51,9 @@ alias ripmenu="sudo killall SystemUIServer NotificationCenter"
alias finder="open -a Finder ./"
alias vs="code ./"
# required: https://github.com/github/hub
# `brew install hub`
alias git="hub"
alias gc="git commit -m" # + commit message
alias gca="git add . && git commit -m" # + commit message
alias gs="git status -sb"
@ -64,7 +67,12 @@ alias glo="git pull origin" # + branch name
alias gb="git checkout" # + branch name
alias gbn="git checkout -b" # + branch name
alias grm="git rebase -i origin/master"
alias gsub="git submodule update --recursive --remote"
alias gundo="git reset --soft HEAD~1"
alias gf="hub fork --remote-name=origin"
alias gpr="hub pull-request"
alias gsync="hub sync"
alias gopen="hub browse"
alias dc="docker-compose"
@ -76,4 +84,7 @@ alias watchos="open /Applications/Xcode.app/Contents/Developer/Applications/Simu
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to clipboard.'"
alias ytdl="youtube-dl -f bestvideo+bestaudio"
alias ytmp3="youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 320K"
alias weather="curl -4 https://wttr.in/Boston"