From 4153b36a2c73ff11c28b26e5c47fcf45192210b5 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Fri, 3 Jul 2009 09:09:53 +0300 Subject: fixed: default for cwd_cmd --- git-prompt.conf | 4 ++-- git-prompt.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/git-prompt.conf b/git-prompt.conf index 2ef616e..a6eab1e 100644 --- a/git-prompt.conf +++ b/git-prompt.conf @@ -28,9 +28,9 @@ ## default_domain="lvvnet" ########################################################### CWD -## cwd_cmd='\w' # display full path +# cwd_cmd='\w' # display full path ## cwd_cmd='\W' # display only last dir of path -cwd_cmd='cwd_truncate 40' # display last 30 chars of path +## cwd_cmd='cwd_truncate 40' # display only last N chars of path ########################################################### ETC diff --git a/git-prompt.sh b/git-prompt.sh index 580419d..e5684fc 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -21,6 +21,7 @@ hg_module=${hg_module:-on} vim_module=${vim_module:-on} error_bell=${error_bell:-off} + cwd_cmd=${cwd_cmd:-\\w} #### dir, rc, root color -- cgit v1.2.3