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
674c90d1
Commit
674c90d1
authored
Nov 23, 2016
by
Stephen M. Coakley
Committed by
GitHub
Nov 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make OMF command colors independent of Fish version (#446)
parent
c4fdb7af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
pkg/omf/functions/core/omf.core.update.fish
pkg/omf/functions/core/omf.core.update.fish
+2
-2
pkg/omf/init.fish
pkg/omf/init.fish
+5
-5
No files found.
pkg/omf/functions/core/omf.core.update.fish
View file @
674c90d1
...
...
@@ -4,10 +4,10 @@ function omf.core.update
# If the channel isn't explicitly set and we are currently tracking a branch instead of a version, the user probably
# upgraded from an old version. Let them know that we will start updating to stable versions.
if begin; not test -f $OMF_CONFIG/channel; and command git -C "$OMF_PATH" symbolic-ref -q HEAD > /dev/null; end
set_color
$fish_color_quote ^/dev/null; or set_color yellow --bold
set_color
yellow --bold ^ /dev/null
echo ">> You have been switched to the stable release channel of Oh My Fish."
echo ">> To switch back to the development channel, run `omf channel dev`."
set_color normal
set_color normal
^ /dev/null
end
# Determine the remote to fetch from.
...
...
pkg/omf/init.fish
View file @
674c90d1
...
...
@@ -4,23 +4,23 @@ set -g OMF_INVALID_ARG 3
set -g OMF_UNKNOWN_ERR 4
function omf::em
set_color
$fish_color_match ^/dev/null; or set_color cyan
set_color
cyan ^ /dev/null
end
function omf::dim
set_color
$fish_color_autosuggestion ^/dev/null; or set_color 555
set_color
555 ^ /dev/null
end
function omf::err
set_color
$fish_color_error ^/dev/null; or set_color red --bold
set_color
red --bold ^ /dev/null
end
function omf::under
set_color --underline
set_color --underline
^ /dev/null
end
function omf::off
set_color normal
set_color normal
^ /dev/null
end
autoload $path/functions/{compat,core,packages,themes,bundle,util,repo,cli,search}
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