diff --git a/lib/refresh.fish b/lib/refresh.fish index 82bff2e..d6b8dce 100644 --- a/lib/refresh.fish +++ b/lib/refresh.fish @@ -4,6 +4,9 @@ # OVERVIEW # Refresh (reload) the current fish session. -function refresh -d "refresh the fish session" - set -q CI; or exec fish < /dev/tty +function refresh -d "Refresh fish session by replacing current process" + if not set -q CI + history --save + exec fish < /dev/tty + end end