mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-19 19:22:45 +08:00
Fix more wrong basename usage cases
This commit is contained in:
parent
6c30b2fac3
commit
00189cc6bf
|
@ -23,11 +23,11 @@ end
|
|||
function __omf.packages.list.available -a type
|
||||
set -l list
|
||||
|
||||
test "$type" = "--theme"; or for package in (basename $OMF_PATH/db/pkg/*)
|
||||
test "$type" = "--theme"; or for package in (basename -a $OMF_PATH/db/pkg/*)
|
||||
contains $package (basename -a {$OMF_CONFIG,$OMF_PATH}/pkg/*); or set list $list $package
|
||||
end
|
||||
|
||||
test "$type" = "--plugin"; or for package in (basename $OMF_PATH/db/themes/*)
|
||||
test "$type" = "--plugin"; or for package in (basename -a $OMF_PATH/db/themes/*)
|
||||
contains $package (basename -a {$OMF_CONFIG,$OMF_PATH}/themes/*); or set list $list $package
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user