mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-21 13:02:26 +08:00
Merge pull request #88 from derekstavis/refresh-keep-history
Save history before replacing shell process
This commit is contained in:
commit
956772daab
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user