From 9ebc6317b5f9ebfa489df6a0712489d4c9b393d7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 8 Jul 2016 02:45:35 +0300 Subject: [PATCH] .shellrc: unset works fine, no need to clear variables --- .shellrc | 3 --- 1 file changed, 3 deletions(-) diff --git a/.shellrc b/.shellrc index 5975ab3..035f756 100644 --- 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 } -- 2.39.2