.zshrc
function git-root() {
if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
cd `pwd`/`git rev-parse --show-cdup`
fi
}
Go to list of users who liked
More than 5 years have passed since last update.
function git-root() {
if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
cd `pwd`/`git rev-parse --show-cdup`
fi
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked