From: Oleg Broytman Date: Thu, 7 Jul 2016 23:45:35 +0000 (+0300) Subject: .shellrc: unset works fine, no need to clear variables X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=9ebc6317b5f9ebfa489df6a0712489d4c9b393d7 .shellrc: unset works fine, no need to clear variables --- 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 }