mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 17:57:38 +08:00
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.
This commit is contained in:
parent
055178bf3d
commit
319c8a05cd
|
@ -20,7 +20,6 @@ env:
|
|||
|
||||
before_install:
|
||||
- tools/travis_install_fish.sh
|
||||
- fish -c 'ln -sf $TRAVIS_BUILD_DIR/tests/functions_override $fish_function_path[1]'
|
||||
|
||||
before_script: pwd; tree -h
|
||||
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
# Refresh (reload) the current fish session.
|
||||
|
||||
function refresh -d "refresh the fish session"
|
||||
exec fish < /dev/tty
|
||||
set -q CI; or exec fish < /dev/tty
|
||||
end
|
||||
|
|
|
@ -20,5 +20,5 @@ function omf.destroy -d "Remove Oh My Fish"
|
|||
rm -rf "$OMF_PATH"
|
||||
end
|
||||
|
||||
exec fish < /dev/tty
|
||||
set -q CI; or exec fish < /dev/tty
|
||||
end
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
# 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
|
Loading…
Reference in New Issue
Block a user