dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1d9703014b4bdd68b7edd20fa5addab3e1703b22
parent 1d65ad8e39055c80c4e33774fe8d7b44efa8ce78
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Mon, 20 Nov 2023 18:32:04 +0100

set-theme: fix path

Diffstat:
Mscripts/set-theme | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/set-theme b/scripts/set-theme @@ -51,8 +51,8 @@ set_gtk() { } set_sioyek() { - if [ -f ~/Library/ApplicationSupport/sioyek/prefs_user.config ]; then - sioyek_config="$(realpath "$HOME/Library/ApplicationSupport/sioyek/prefs_user.config")" + sioyek_config="$(realpath ~/.config/sioyek/prefs_user.config)" + if [ -f "$sioyek_config" ]; then sed "/source .*\.config/s!\./.*\.config!./$1.config!" "${sioyek_config}" > "${sioyek_config}.new" \ && mv "${sioyek_config}.new" "${sioyek_config}" fi