1
0
forked from extern/nix-config

Add an easy way to cd into the root git directory to .zsh_functions

This commit is contained in:
Donovan Glover 2017-11-21 18:11:53 -05:00
parent 2097dee645
commit 51291c9b62
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D

View File

@ -70,6 +70,12 @@ function lab() {
cd $(basename "$1")
}
# Easily cd into the "home" directory of any repository you're working in
# This needs to be a function instead of an alias since it relies on `external calls`
function gh() {
cd `git rev-parse --show-toplevel`
}
####################################################################
# Utility functions
####################################################################