From 59e96d3e57756588a95fa75bc1b968d20fbef505 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 4 Jan 2022 10:07:18 -0500 Subject: [PATCH] Added espanso setup script --- espanso/setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/espanso/setup b/espanso/setup index 6d70e35..b14df24 100755 --- a/espanso/setup +++ b/espanso/setup @@ -101,6 +101,8 @@ _copy_espanso() { _link_espanso() { echo "Linking espanso configuration..." + # linking the espanso directory is not permitted, so we can only + # link the configuration inside of the preferences directory. ln -sfv "$PWD/espanso/default.yml" "$prefs/espanso" ln -sfv "$PWD/espanso/user" "$prefs/espanso" } @@ -121,6 +123,9 @@ _install() { # We have espanso, so install configuration files _make_dirs + # must copy / link configuration before installing packages, + # else the default configuration get's installed and causes this + # script to fail if test $copy -eq 0 ; then _copy_espanso elif test $link -eq 0; then