DTrejo / dotfiles

DTrejo's Dotfiles

Home Page:https://dtrejo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add g function

neo-tahi opened this issue · comments

# Acts like "git status" if given no arguments
# Acts like "git blah blah blah" otherwise
unalias g
function g () {
  if [[ $# == 0 ]]; then
    git status -sb
  else
    git $*
  fi
}