configfiles/vim/.vim/findgitroot.sh

10 lines
119 B
Bash
Raw Normal View History

2016-11-18 19:34:08 +01:00
#!/bin/bash
while true; do
[[ "$(pwd)" == "/" ]] && exit 1
[[ -d "./.git" ]] && break
cd ..
done
exec $@