I don't understand this if condition. The line before is always setting that variable as 'NONE', so it will always evaluate as true. Aren't you trying to do something like this:

```bash
if not set -q gi_list
  set -g gi_list (gi list| tr ',' ' ' ^/dev/null)
end
```