mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Added espanso setup script
This commit is contained in:
@@ -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
|
||||
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user