Commit 319c8a05 authored by Bruno Pinto's avatar Bruno Pinto

Don't overwrite function on test environment

Instead of overwriting functions that use `exec fish` on test
environment, skip this call if the variable `CI` has been defined on the
running shell.
parent 055178bf
...@@ -20,7 +20,6 @@ env: ...@@ -20,7 +20,6 @@ env:
before_install: before_install:
- tools/travis_install_fish.sh - tools/travis_install_fish.sh
- fish -c 'ln -sf $TRAVIS_BUILD_DIR/tests/functions_override $fish_function_path[1]'
before_script: pwd; tree -h before_script: pwd; tree -h
......
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
# Refresh (reload) the current fish session. # Refresh (reload) the current fish session.
function refresh -d "refresh the fish session" function refresh -d "refresh the fish session"
exec fish < /dev/tty set -q CI; or exec fish < /dev/tty
end end
...@@ -20,5 +20,5 @@ function omf.destroy -d "Remove Oh My Fish" ...@@ -20,5 +20,5 @@ function omf.destroy -d "Remove Oh My Fish"
rm -rf "$OMF_PATH" rm -rf "$OMF_PATH"
end end
exec fish < /dev/tty set -q CI; or exec fish < /dev/tty
end end
# SYNOPSIS
# refresh
#
# OVERVIEW
# Refresh (reload) the current fish session.
function refresh -d "refresh the fish session (Travis Override)"
echo !!! Shell refresh requested in testing Environment !!!
exit 0;
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment