From ea9af47d0db7210dca0002446ab10ce29eb36735 Mon Sep 17 00:00:00 2001 From: Deepankar Chakroborty Date: Thu, 29 Jun 2023 12:33:28 -0700 Subject: [PATCH] ensure that the script can be run from anywhere --- apply_theme.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apply_theme.sh b/apply_theme.sh index 283b5d7..8b413db 100755 --- a/apply_theme.sh +++ b/apply_theme.sh @@ -12,8 +12,11 @@ # # License: https://github.com/dchakro/alacritty_colors/blob/master/LICENSE # #<----------------------------> -# Make a theme list +# Set the directory where this is installed: +BASEDIR="${HOME}/scripts/alacritty_colors" +cd ${BASEDIR} +# Make a list of themes declare -a arrFiles cd themes for file in *.yml