Fix variable lifecycle :bugs:

This commit is contained in:
Wenxuan 2017-11-23 18:05:15 +08:00
parent ae84827919
commit 0a3bbb4ecc

View file

@ -56,8 +56,8 @@ ga() {
git status
}
# git ignore
local giCache=~/.giCache
local giIndex=$giCache/.list
export giCache=~/.giCache
export giIndex=$giCache/.list
unalias gi 2>/dev/null
gi() {
[ -f $giIndex ] || gi-update-index