Wrap init in a function

This commit is contained in:
Ceda EI 2019-02-15 19:57:48 +05:30
parent 30671c610f
commit 3440f16b56
1 changed files with 16 additions and 12 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
function wish_init() {
# Source all plugins
for i in ${WISH_PLUGINS[@]}; do
for j in "$XDG_CONFIG_HOME" "/usr/share" "$HOME/.config"; do
@ -15,3 +16,6 @@ for i in "$XDG_CONFIG_HOME" "/usr/share" "$HOME/.config"; do
done
[[ $? -ne 0 ]] && echo "Theme $WISH_THEME not found." >&2
}
wish_init