1
0
forked from extern/nix-config

Add alias to cd into any home repository directory

This commit is contained in:
Donovan Glover 2017-10-31 09:06:08 -04:00
parent 72cf02661b
commit b768837274
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D

View File

@ -67,6 +67,9 @@ alias gs="git status" # Compare any local changes you've made to t
alias gr="git reset HEAD" # Undo the last commit but keep your changed files
alias grr="git reset --hard HEAD" # Remove the last commit and all changes with it
# Easily cd into the "home" directory of any repository you're working in
alias gh="cd `git rev-parse --show-toplevel`"
####################################################################
# Launch aliases (allow us to easily open external programs)
####################################################################