mirror of https://gitlab.com/ceda_ei/wish
Wrap init in a function
This commit is contained in:
parent
30671c610f
commit
3440f16b56
4
wish.sh
4
wish.sh
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
function wish_init() {
|
||||||
# Source all plugins
|
# Source all plugins
|
||||||
for i in ${WISH_PLUGINS[@]}; do
|
for i in ${WISH_PLUGINS[@]}; do
|
||||||
for j in "$XDG_CONFIG_HOME" "/usr/share" "$HOME/.config"; 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
|
done
|
||||||
|
|
||||||
[[ $? -ne 0 ]] && echo "Theme $WISH_THEME not found." >&2
|
[[ $? -ne 0 ]] && echo "Theme $WISH_THEME not found." >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
wish_init
|
||||||
|
|
Loading…
Reference in New Issue