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
5b2446d7
Commit
5b2446d7
authored
Aug 31, 2015
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #567 from sheldon/describe-installed-packages
describe works on installed packages
parents
0a32588f
633e5210
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
pkg/omf/cli/omf.list_db_packages.fish
pkg/omf/cli/omf.list_db_packages.fish
+7
-2
pkg/omf/completions/omf.fish
pkg/omf/completions/omf.fish
+1
-1
pkg/omf/omf.fish
pkg/omf/omf.fish
+1
-1
No files found.
pkg/omf/cli/omf.list_db_packages.fish
View file @
5b2446d7
# List all packages available to install from the registry.
function omf.list_db_packages
function omf.list_db_packages
-a skip_installed
for item in (basename $OMF_PATH/db/pkg/*)
contains $item (basename {$OMF_PATH,$OMF_CONFIG}/pkg/*); or echo $item
if begin
test -z $skip_installed
or not contains $item (basename {$OMF_PATH,$OMF_CONFIG}/pkg/*)
end
echo $item
end
end
end
pkg/omf/completions/omf.fish
View file @
5b2446d7
...
...
@@ -16,7 +16,7 @@ complete -c omf -n "__omf.opt_is q query" -a (printf "%s " (set | awk '{
complete -c omf -n "__omf.opt_is r rm remove" -a (printf "%s " (omf.list_local_packages) (omf.list_installed_themes))
complete -c omf -n "__omf.opt_is d desc describe" -a (printf "%s " (omf.list_db_packages))
complete -c omf -n "__omf.opt_is c cd" -a (printf "%s " (omf.list_db_packages))
complete -c omf -n "__omf.opt_is i install" -a (printf "%s " (omf.list_db_packages))
complete -c omf -n "__omf.opt_is i install" -a (printf "%s " (omf.list_db_packages
"skip installed packages"
))
complete -c omf -n "__omf.opt_is t theme" -a (printf "%s " (omf.list_themes))
complete -c omf -n "__omf.opt_is help" -a "install theme remove update list describe cd new submit query destroy"
...
...
pkg/omf/omf.fish
View file @
5b2446d7
...
...
@@ -89,7 +89,7 @@ function omf -d "Oh My Fish"
case "i" "install" "get"
if test (count $argv) -eq 1
omf.list_db_packages | column
omf.list_db_packages
"skip installed packages"
| column
else
omf.install_package $argv[2..-1]
refresh
...
...
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