mirror of
https://gitlab.com/ceda_ei/wish
synced 2025-12-16 10:40:10 +01:00
Wrap init in a function
This commit is contained in:
4
wish.sh
4
wish.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user