Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
8de7eb4c
Commit
8de7eb4c
authored
Mar 23, 2016
by
Justin Hileman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #276 from oh-my-fish/deprecate-refresh
lib: deprecate `refresh` function
parents
e04ba4f3
b490fad3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
lib/refresh.fish
lib/refresh.fish
+0
-12
pkg/omf/functions/compat/refresh.fish
pkg/omf/functions/compat/refresh.fish
+21
-0
No files found.
lib/refresh.fish
deleted
100644 → 0
View file @
e04ba4f3
# SYNOPSIS
# refresh
#
# OVERVIEW
# Refresh (reload) the current fish session.
function refresh -d "Refresh fish session by replacing current process"
if not set -q CI
history --save
exec fish < /dev/tty
end
end
pkg/omf/functions/compat/refresh.fish
0 → 100644
View file @
8de7eb4c
function refresh -d "(deprecated) Refresh fish session by replacing current process"
echo (status -t)[5] | read -la caller
printf 'warning: function %srefresh%s is deprecated and will be removed soon.\n' \
(set_color -u) (set_color normal)
contains input $caller
or echo $caller
set -q CI
and return 0
type -q omf.core.reload
and omf.core.reload
# If omf.core.reload exist, current fish will be replaced via exec, so
# the code below will never be reached. When it doesn't exist, the code
# below, the deprecated method, will be used as fallback.
history --save
exec fish
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment