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:
parent
f40a23352c
commit
1d358cda17
@ -10,15 +10,18 @@
|
|||||||
gpgsign = true
|
gpgsign = true
|
||||||
[push]
|
[push]
|
||||||
default = current
|
default = current
|
||||||
[pull]
|
|
||||||
rebase = true
|
|
||||||
[core]
|
[core]
|
||||||
editor = nano
|
editor = nano
|
||||||
excludesfile = ~/.gitignore_global
|
excludesfile = ~/.gitignore_global
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
smudge = git-lfs smudge -- %f
|
|
||||||
process = git-lfs filter-process
|
|
||||||
required = true
|
required = true
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
[github]
|
[github]
|
||||||
user = jakejarvis
|
user = jakejarvis
|
||||||
|
[pull]
|
||||||
|
rebase = true
|
||||||
|
[hub]
|
||||||
|
host = github.com
|
||||||
|
host = git.jarv.is
|
||||||
|
2
setup.sh
2
setup.sh
@ -33,7 +33,7 @@ chsh -s $(which zsh)
|
|||||||
# Set up symbolic links for ZSH and Git pointing to this cloned repo
|
# 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/zsh/.zshrc $HOME/.zshrc
|
||||||
ln -s $HOME/.dotfiles/git/.gitconfig $HOME/.gitconfig
|
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
|
# Set macOS defaults
|
||||||
# Needs to be last since this will restart everything when done
|
# Needs to be last since this will restart everything when done
|
||||||
|
@ -51,6 +51,9 @@ alias ripmenu="sudo killall SystemUIServer NotificationCenter"
|
|||||||
alias finder="open -a Finder ./"
|
alias finder="open -a Finder ./"
|
||||||
alias vs="code ./"
|
alias vs="code ./"
|
||||||
|
|
||||||
|
# required: https://github.com/github/hub
|
||||||
|
# `brew install hub`
|
||||||
|
alias git="hub"
|
||||||
alias gc="git commit -m" # + commit message
|
alias gc="git commit -m" # + commit message
|
||||||
alias gca="git add . && git commit -m" # + commit message
|
alias gca="git add . && git commit -m" # + commit message
|
||||||
alias gs="git status -sb"
|
alias gs="git status -sb"
|
||||||
@ -64,7 +67,12 @@ alias glo="git pull origin" # + branch name
|
|||||||
alias gb="git checkout" # + branch name
|
alias gb="git checkout" # + branch name
|
||||||
alias gbn="git checkout -b" # + branch name
|
alias gbn="git checkout -b" # + branch name
|
||||||
alias grm="git rebase -i origin/master"
|
alias grm="git rebase -i origin/master"
|
||||||
|
alias gsub="git submodule update --recursive --remote"
|
||||||
alias gundo="git reset --soft HEAD~1"
|
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"
|
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 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"
|
alias weather="curl -4 https://wttr.in/Boston"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user