Skip to content

Instantly share code, notes, and snippets.

@yakup
yakup / Sublime Text 3 Command
Created January 9, 2019 08:30 — forked from vanderlin/Sublime Text 3 Command
Create a Sublime Text 3 symbolic link to open a file via command line. paste this into terminal and now you can run `subl .` to open the directory in sublime or `subl file.html`
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@yakup
yakup / git_aliases.txt
Created June 25, 2018 13:46
Git aliases
alias.co checkout
alias.st status
alias.ec config --global -e
alias.br branch -vv
alias.gr grep -i
alias.ls !git branch -r && git br
alias.up !git pull --rebase --prune $@ && git submodule update --init --recursive
alias.cob checkout origin/HEAD -b
alias.rn !f(){ git branch -m ${1}; };f
alias.task !f(){ git checkout -b t${1}/${2}/${3} origin/HEAD && git status; };f