diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-07-03 09:09:53 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-07-03 09:09:53 +0300 |
commit | 4153b36a2c73ff11c28b26e5c47fcf45192210b5 (patch) | |
tree | 923f1cec2756f37a0ab38c459f42c5b405c4ad93 | |
parent | fixed: consistant tabulation. tabstop=8, tabs replaced with spaces (diff) | |
download | git-prompt-4153b36a2c73ff11c28b26e5c47fcf45192210b5.tar.gz git-prompt-4153b36a2c73ff11c28b26e5c47fcf45192210b5.tar.bz2 git-prompt-4153b36a2c73ff11c28b26e5c47fcf45192210b5.zip |
fixed: default for cwd_cmd
-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 |