dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 1c3801d82c17788cc5d03f8ba28f39616b25e263
parent d60a9e37b960073911d4e1ede61c683175b59f4a
Author: Duncaen <mail@duncano.de>
Date:   Thu,  2 Jul 2015 10:01:13 +0200

add bin/h

Diffstat:
bin/h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/bin/h b/bin/h @@ -0,0 +1,8 @@ +#!/bin/mksh + +dir="$PWD" +while [ -n "$dir" ]; do + [ -d "$dir/.git" ] && break + [ "$dir" = "$HOME" ] && break + dir="${dir%/*}" +done && echo "$dir" || return 1