diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-09-19 11:55:40 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-09-19 11:55:40 +0300 |
commit | 277aef5170a45cdf1117a31751be8507ec3ab2c3 (patch) | |
tree | bc7416e2da2ffb62fbe6459e9ecfe6084ec508ac | |
parent | don't show files from parent dir (diff) | |
download | git-prompt-277aef5170a45cdf1117a31751be8507ec3ab2c3.tar.gz git-prompt-277aef5170a45cdf1117a31751be8507ec3ab2c3.tar.bz2 git-prompt-277aef5170a45cdf1117a31751be8507ec3ab2c3.zip |
limited max lenth of git file list
-rw-r--r-- | git-prompt.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index 077866e..c840c4e 100644 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -430,6 +430,7 @@ parse_vcs_dir() { [[ ${untracked_files[1]} ]] && file_list+=" "$untracked_vcs_color${untracked_files[@]:1:$max_untracked}${untracked_files[$max_untracked+1]:+...} [[ ${vim_files} ]] && file_list+=" "${RED}VIM:$vim_files} file_list=${file_list:+:$file_list} + file_list=${file_list:0:100} # max lenth tail_local="($vcs_info$vcs_color${file_list}$vcs_color)" |