diff options
-rw-r--r-- | git-prompt.conf | 4 | ||||
-rwxr-xr-x | 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 |