Skip to content

Instantly share code, notes, and snippets.

View nachoaIvarez's full-sized avatar

Nacho Álvarez nachoaIvarez

View GitHub Profile
@nachoaIvarez
nachoaIvarez / gip.sh
Last active August 29, 2015 14:25
Print LAN IP in the Mac terminal.
gip(){
ifconfig en0 | grep inet | grep -v inet6 | awk '{printf "\n\033[1;32m" $2 "\033[0m\n\n"}'
}

Keybase proof

I hereby claim:

  • I am nachoaivarez on github.
  • I am nachoalvarez (https://keybase.io/nachoalvarez) on keybase.
  • I have a public key ASAskflqymJNNHR9ol5y6SCnT0AT6MAQicdoikcQ_YKl-Ao

To claim this, I am signing this object:

gfix() { # gfix: Git Fix
git commit --fixup $1 && GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash $1^
}