From b65daa77bb7e8fc307c333a23e93d1f4e7d39718 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 24 Sep 2012 14:56:31 +0900 Subject: [PATCH] fix bug on dh --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 531b219..62d130c 100755 --- a/bashrc +++ b/bashrc @@ -268,7 +268,7 @@ dh(){ then dirs -v -l else - local dir="$(dirs -v -l | \grep "^ *$1 \+" | sed "s/^ *[0-9]\+ *//g")" + local dir="$(dirs -v -l | \grep "^ *$1 \+" | sed "s/^ *[0-9]* *//g")" cd "$dir" fi }