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
1c14af38
Commit
1c14af38
authored
Dec 11, 2020
by
Pablo Santiago Blum de Aguiar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mismatched brackets error in `omf list` on Fish 2.2
Ref #707
parent
b2643e95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
pkg/omf/functions/packages/omf.packages.list.fish
pkg/omf/functions/packages/omf.packages.list.fish
+2
-2
pkg/omf/spec/omf_list_spec.fish
pkg/omf/spec/omf_list_spec.fish
+32
-0
No files found.
pkg/omf/functions/packages/omf.packages.list.fish
View file @
1c14af38
...
@@ -14,8 +14,8 @@ function omf.packages.list -d 'List installed packages'
...
@@ -14,8 +14,8 @@ function omf.packages.list -d 'List installed packages'
set -e show_plugins
set -e show_plugins
end
end
set -l plugins_paths {$OMF_
CONFIG, $OMF_PATH
}/pkg/*
set -l plugins_paths {$OMF_
PATH,$OMF_CONFIG
}/pkg/*
set -l themes_paths {$OMF_
CONFIG, $OMF_PATH
}/themes/*
set -l themes_paths {$OMF_
PATH,$OMF_CONFIG
}/themes/*
if set -q show_plugins
if set -q show_plugins
for path in $plugins_paths
for path in $plugins_paths
...
...
pkg/omf/spec/omf_list_spec.fish
0 → 100644
View file @
1c14af38
function describe_omf_list_tests
function before_all
set -gx CI WORKAROUND
end
function it_can_list_plugins
set -l list_output (omf list -p)
assert 0 = $status
assert "$list_output" = "fish-spec omf"
end
function it_can_list_themes
set -l list_output (omf list -t)
assert 0 = $status
assert "$list_output" = "default"
end
function it_can_list_insttalled_plugins
set -l output (omf remove apt 2> /dev/null)
set -l output (omf install apt 2> /dev/null)
set -l list_output (omf list -p)
assert 0 = $status
assert "$list_output" = "apt fish-spec omf"
set -l output (omf remove apt 2> /dev/null)
end
function it_can_list_themes
set -l list_output (omf list -t)
assert 0 = $status
assert "$list_output" = "default"
end
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