Use basename instead of sed
parent
a9e8f10e35
commit
0c70325542
|
|
@ -10,7 +10,7 @@ then
|
|||
THEMES="$BASH_IT/themes/*/*.theme.bash"
|
||||
for theme in $THEMES
|
||||
do
|
||||
BASH_IT_THEME=$(echo $theme | sed "s/\//\n/g" | tail -1 | sed "s/.theme.bash//")
|
||||
BASH_IT_THEME=$(basename -s '.theme.bash' $theme)
|
||||
echo "
|
||||
$BASH_IT_THEME"
|
||||
echo "" | bash --init-file $BASH_IT/bash_it.sh -i
|
||||
|
|
|
|||
Loading…
Reference in New Issue