Skip to content

Instantly share code, notes, and snippets.

@saggie
Last active April 2, 2020 04:11
Show Gist options
  • Save saggie/f960058254fc0d3d790207be0d39a52c to your computer and use it in GitHub Desktop.
Save saggie/f960058254fc0d3d790207be0d39a52c to your computer and use it in GitHub Desktop.
# 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