]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: unset works fine, no need to clear variables
authorOleg Broytman <phd@phdru.name>
Thu, 7 Jul 2016 23:45:35 +0000 (02:45 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 7 Jul 2016 23:45:35 +0000 (02:45 +0300)
.shellrc

index 5975ab3a7f4ab27cd2002f40839f4bc7d4d12c77..035f756e4c4ce6302c7f41a484e4136af50cefe6 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -176,7 +176,6 @@ if test -n "$BASH_VERSION"; then
             GIT_REMOTES="$GIT_REMOTES $remote"
          fi
       done
-      remote=""
       unset remote
    }
 
@@ -185,7 +184,6 @@ if test -n "$BASH_VERSION"; then
       local cur="${COMP_WORDS[COMP_CWORD]}";
       list_remotes '^\(/\|\.\./\)' # (/ or ../ at the beginning)
       COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`)
-      GIT_REMOTES=""
       unset GIT_REMOTES
    }
 
@@ -196,7 +194,6 @@ if test -n "$BASH_VERSION"; then
       local cur="${COMP_WORDS[COMP_CWORD]}";
       list_remotes '^http\(s\)\?://'
       COMPREPLY=(`compgen -W "$GIT_REMOTES" -- "$cur"`)
-      GIT_REMOTES=""
       unset GIT_REMOTES
    }