From 1cf65faff09008a72863a2129b22026b7e0be63b Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 4 Jan 2022 10:08:05 -0500 Subject: [PATCH] Added espanso setup script --- scripts/install-espanso-packages | 13 ------------- scripts/setup | 6 ++---- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100755 scripts/install-espanso-packages diff --git a/scripts/install-espanso-packages b/scripts/install-espanso-packages deleted file mode 100755 index 378b8fe..0000000 --- a/scripts/install-espanso-packages +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -set -e - -function installEspansoPackages() { - echo "Installing packages..." - espanso install mac-symbols - espanso install all-emojis - echo "Restarting espanso" - espanso restart -} - -installEspansoPackages diff --git a/scripts/setup b/scripts/setup index 2ab3f6a..a1ab390 100755 --- a/scripts/setup +++ b/scripts/setup @@ -18,7 +18,7 @@ _usage() { printf "\t-c | --copy : Copy the configuration files, instead of creating symlinks.\n" >&2 printf "\t-h | --help : Print usage information.\n" >&2 printf "\t-l | --link : Create symlinks to the configuration files (Default).\n" >&2 - printf "\t-r | --remove : Removes the entire ~/.config/zsh directory.\n" >&2 + printf "\t-r | --remove : Removes the entire ~/.config/scripts directory.\n" >&2 printf "\t-u | --uninstall : Uninstalls configuration files.\n" >&2 printf "\n" >&2 printf "If called without the uninstall option then it will install the configuration files.\n" >&2 @@ -94,11 +94,9 @@ _install() { #--------------- main --------------- main() { _parse_options "$@" - test "$remove" -eq 0 && _remove_scripts && exit "$?" test "$uninstall" -eq 0 && _remove_scripts && exit "$?" - - _install + _install && exit "$?" } main "$@"