Added espanso setup script

This commit is contained in:
2022-01-04 10:08:05 -05:00
parent 59e96d3e57
commit 1cf65faff0
2 changed files with 2 additions and 17 deletions

View File

@@ -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

View File

@@ -18,7 +18,7 @@ _usage() {
printf "\t-c | --copy : Copy the configuration files, instead of creating symlinks.\n" >&2 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-h | --help : Print usage information.\n" >&2
printf "\t-l | --link : Create symlinks to the configuration files (Default).\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 "\t-u | --uninstall : Uninstalls configuration files.\n" >&2
printf "\n" >&2 printf "\n" >&2
printf "If called without the uninstall option then it will install the configuration files.\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 ---------------
main() { main() {
_parse_options "$@" _parse_options "$@"
test "$remove" -eq 0 && _remove_scripts && exit "$?" test "$remove" -eq 0 && _remove_scripts && exit "$?"
test "$uninstall" -eq 0 && _remove_scripts && exit "$?" test "$uninstall" -eq 0 && _remove_scripts && exit "$?"
_install && exit "$?"
_install
} }
main "$@" main "$@"