From 39b69b38c48e8ab2b13129ffc7c99549321da4d3 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Mon, 23 Jun 2008 10:51:14 +0300 Subject: rfct: added local vars defs --- prompt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'prompt') diff --git a/prompt b/prompt index b154cbc..1d20cc4 100755 --- a/prompt +++ b/prompt @@ -265,6 +265,12 @@ git_module() { [[ $git_dir ]] || return + local branch status git_color file_list + local clean added modified untracked detached + local git_modified_files + local git_untracked_files + local git_added_files + eval ` git status 2>/dev/null | sed -n " @@ -374,11 +380,6 @@ git_module() { head_local="${head_local+$git_color $head_local\n}" tail_local="${tail_local+$git_color $tail_local}${dir_color}" - unset branch status git_color sep file_list - unset clean added modified untracked detached - unset git_modified_files - unset git_untracked_files - unset git_added_files } ############################################################### PROMPT_COMMAND -- cgit v1.2.3