fix(init): allow alternate Iris binary
This commit is contained in:
+7
-3
@@ -35,7 +35,7 @@ fi
|
||||
# prompt to complete, and exec'ing here would seize the tty from the real iris
|
||||
if [[ -o interactive ]] && [ -t 0 ] && [ -z "$IRIS_PID" ] && [ -z "$IRIS_RESCUE" ]; then
|
||||
export IRIS_ACTIVE_SHELL="zsh"
|
||||
exec iris
|
||||
exec "${IRIS_BIN:-iris}"
|
||||
fi
|
||||
|
||||
# Iris Autocomplete Hook
|
||||
@@ -80,7 +80,7 @@ fi
|
||||
# prompt to complete, and exec'ing here would seize the tty from the real iris
|
||||
if [[ $- == *i* ]] && [ -t 0 ] && [ -z "$IRIS_PID" ] && [ -z "$IRIS_RESCUE" ]; then
|
||||
export IRIS_ACTIVE_SHELL="bash"
|
||||
exec iris
|
||||
exec "${IRIS_BIN:-iris}"
|
||||
fi
|
||||
|
||||
# Iris Autocomplete Hook
|
||||
@@ -115,7 +115,11 @@ end
|
||||
|
||||
if status is-interactive; and not set -q IRIS_PID; and not set -q IRIS_RESCUE
|
||||
set -gx IRIS_ACTIVE_SHELL "fish"
|
||||
exec iris
|
||||
if set -q IRIS_BIN
|
||||
exec "$IRIS_BIN"
|
||||
else
|
||||
exec iris
|
||||
end
|
||||
end
|
||||
|
||||
# Iris Autocomplete Hook
|
||||
|
||||
Reference in New Issue
Block a user