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
31f1c354
Commit
31f1c354
authored
Oct 05, 2017
by
Stephen M. Coakley
Committed by
GitHub
Oct 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #530 from oh-my-fish/fix/529-omf-new-theme
Fix #529
parents
a89771c1
2785f2d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
pkg/omf/functions/cli/omf.cli.theme.fish
pkg/omf/functions/cli/omf.cli.theme.fish
+5
-1
pkg/omf/functions/packages/omf.packages.new.fish
pkg/omf/functions/packages/omf.packages.new.fish
+0
-4
pkg/omf/functions/themes/omf.theme.set.fish
pkg/omf/functions/themes/omf.theme.set.fish
+1
-3
No files found.
pkg/omf/functions/cli/omf.cli.theme.fish
View file @
31f1c354
...
...
@@ -14,7 +14,11 @@ function omf.cli.theme -a name
echo (omf::under)"Available:"(omf::off)
omf.index.query --type=theme | column
case 1
omf.theme.set $name
if not omf.theme.set $name
echo (omf::err)"Theme not installed!"(omf::off)
echo Install it using (omf::em)omf install $name(omf::off)
return $OMF_INVALID_ARG
end
case '*'
echo (omf::err)"Invalid number of arguments"(omf::off) >&2
echo "Usage: $_ "(omf::em)"$argv[1]"(omf::off)" [<theme name>]" >&2
...
...
pkg/omf/functions/packages/omf.packages.new.fish
View file @
31f1c354
...
...
@@ -67,10 +67,6 @@ function omf.packages.new -a option name
$github $user $name
echo (omf::em)"Switched to $dir"(omf::off)
if test "$option" = themes
omf.theme.set $name
end
else
echo (omf::err)"\$OMF_CONFIG and/or \$OMF_PATH undefined."(omf::off) >&2
exit $OMF_UNKNOWN_ERR
...
...
pkg/omf/functions/themes/omf.theme.set.fish
View file @
31f1c354
function omf.theme.set -a target_theme
if not contains "$target_theme" (omf.packages.list --theme)
echo (omf::err)"Theme not installed!"(omf::off)
echo Install it using (omf::em)omf install $target_theme(omf::off)
if not test -d $OMF_PATH/themes/$target_theme
return $OMF_INVALID_ARG
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