arbelt / fish-plugin-scmpuff

1 stars 3 forks source link

Warning when running type with unset variable #2

Closed uce closed 4 years ago

uce commented 5 years ago

https://github.com/arbelt/fish-plugin-scmpuff/blob/64b323fb5fd8b176e2df181064e699d688be9b37/conf.d/scmpuff.fish#L16

The linked line should have $SCMPUFF_GIT_CMD in quotes in order to avoid a warning:

type -q "$SCMPUFF_GIT_CMD"; or set -x SCMPUFF_GIT_CMD (which git)

Otherwise, I get the following warning if the variable is not set:

type: Expected at least 1 args, got only 0