From 8b5777c1f56a9214a223ff65a5f5c66e7da8a0cc Mon Sep 17 00:00:00 2001 From: Jorge Date: Wed, 25 Feb 2015 12:50:07 +0900 Subject: [PATCH] fix basename bug on linux --- plugins/theme/theme.fish | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/theme/theme.fish b/plugins/theme/theme.fish index a276cea..6437a9b 100644 --- a/plugins/theme/theme.fish +++ b/plugins/theme/theme.fish @@ -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