Commit b14c1039 authored by Jorge Bucaran's avatar Jorge Bucaran

Merge pull request #392 from bucaran/try-plugin

fix basename bug on linux
parents 750929af 8b5777c1
...@@ -63,9 +63,10 @@ function theme -d "quick theme switcher" ...@@ -63,9 +63,10 @@ function theme -d "quick theme switcher"
set regex "\b($fish_theme)\b" set regex "\b($fish_theme)\b"
end end
set -l color green set -l color green
basename -a (theme.util.get.themes) \ for theme in (theme.util.get.themes)
| column \ basename $theme \
| sed -E "s/$regex/"(set_color $color)"\1*"(set_color normal)"/" | sed -E "s/$regex/"(set_color $color)"\1*"(set_color normal)"/"
end | column
set_color normal set_color normal
case -r --restore case -r --restore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment