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
d107b2ec
Commit
d107b2ec
authored
Aug 28, 2015
by
Jorge Bucaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify color setters
parent
84872300
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
20 deletions
+8
-20
pkg/omf/omf.fish
pkg/omf/omf.fish
+8
-20
No files found.
pkg/omf/omf.fish
View file @
d107b2ec
# SYNOPSIS
# Oh My Fish CLI
# Oh My Fish
!
CLI
#
# ENV
# OMF_VERSION Version
# OMF_CONFIG Oh My Fish configuration
# OMF_CONFIG Oh My Fish! configuration
#
# OVERVIEW
# Provides options to list, download and remove packages, update
...
...
@@ -14,29 +13,18 @@ set -g OMF_UNKNOWN_OPT 2
set -g OMF_INVALID_ARG 3
set -g OMF_UNKNOWN_ERR 4
set -g OMF_VERSION "1.0.0"
function omf::em
if set -q fish_color_match
set_color $fish_color_match
else
set_color cyan
end
set_color $fish_color_match ^/dev/null; or set_color cyan
end
function omf::dim
if set -q fish_color_autosuggestion
set_color $fish_color_autosuggestion
else
set_color 555
end
set_color $fish_color_match ^/dev/null; or set_color 555
end
function omf::err
if set -q fish_color_error
set_color $fish_color_error
else
set_color red --bold
end
set_color $fish_color_error ^/dev/null; or set_color red --bold
end
function omf::off
set_color normal
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