Add cd command

This will ensure that the i3-themer will work even if it's called
outside its home directory
This commit is contained in:
cizordj
2020-12-17 22:49:17 -03:00
parent 1a6b708e39
commit 81cf32a8f6
+1
View File
@@ -3,6 +3,7 @@ declare -A CONFIG_PATH
test ! $# -gt 0
THERE_IS_NO_ARGUMENT="$?"
XDG_CONFIG_HOME="$HOME/.config"
cd "$(dirname "$0")"
CONFIG_PATH['i3']="$XDG_CONFIG_HOME/i3/config"
CONFIG_PATH['dunst']="$XDG_CONFIG_HOME/dunst/dunstrc"