mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-23 12:57:57 +08:00
fix basename bug on linux
This commit is contained in:
parent
750929aff7
commit
8b5777c1f5
|
@ -63,9 +63,10 @@ function theme -d "quick theme switcher"
|
|||
set regex "\b($fish_theme)\b"
|
||||
end
|
||||
set -l color green
|
||||
basename -a (theme.util.get.themes) \
|
||||
| column \
|
||||
| sed -E "s/$regex/"(set_color $color)"\1*"(set_color normal)"/"
|
||||
for theme in (theme.util.get.themes)
|
||||
basename $theme \
|
||||
| sed -E "s/$regex/"(set_color $color)"\1*"(set_color normal)"/"
|
||||
end | column
|
||||
set_color normal
|
||||
|
||||
case -r --restore
|
||||
|
|
Loading…
Reference in New Issue
Block a user