Last active
April 2, 2020 04:11
-
-
Save saggie/f960058254fc0d3d790207be0d39a52c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Utils | |
alias ex='exit' | |
alias ls2='ls -d $PWD/*' | |
getpath() { | |
readlink -f $1 | |
} | |
mygrep() { | |
grep -r "$1" . | |
} | |
ed () { | |
gedit $1 & | |
} | |
open() { | |
nautilus --browser ${1:-.} | |
} | |
# Git | |
alias gitka='gitk --all &' | |
alias gg='git gui &' | |
alias gs='git status -s' | |
alias bra='git branch -a' | |
alias gf='git fetch --prune' | |
alias gl='git --no-pager log --oneline --graph -n20' | |
alias gitcom='git checkout origin/master' | |
gitco() { | |
command git checkout -b $1 --track origin/$1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment