dotfiles/includes/root.sh

10 lines
197 B
Bash
Raw Normal View History

2012-10-10 14:05:57 +00:00
# Copyright 2009 Daniel Jackoway
# released under the MIT License
# see COPYING for the full text
function gitr {
while [ ! -d .git -a ! -f '.this_is_root' -a `pwd` != "/" ]
do
cd "..";
done
}