From de33b09450b69986f5243dd4b552f51bd7ddfa66 Mon Sep 17 00:00:00 2001 From: Martim Lobao Date: Tue, 5 Nov 2024 13:31:36 +0000 Subject: [PATCH] feat: Add appsync function to run install.sh (#48) - new appsync function to run install.sh and sync installed apps with the ones in apps.toml - export DOTPATH - add gitconfig.private to gitignore ## Summary by Sourcery Add a new AppSync function to run install.sh and sync applications with apps.toml, export DOTPATH, and update .gitignore to include gitconfig.private. New Features: - Introduce a new AppSync function to execute install.sh and synchronize installed applications with those listed in apps.toml. Enhancements: - Export DOTPATH in the environment configuration. Chores: - Add gitconfig.private to the .gitignore file to prevent it from being tracked. --- .gitignore | 1 + linkme/.exports | 3 +++ linkme/.functions | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 6f60a79..5f6fa00 100644 --- a/.gitignore +++ b/.gitignore @@ -227,3 +227,4 @@ pyrightconfig.json # End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,python # repo specific temp/ +.gitconfig.private diff --git a/linkme/.exports b/linkme/.exports index 55be858..8d8e14a 100644 --- a/linkme/.exports +++ b/linkme/.exports @@ -24,3 +24,6 @@ export NNN_CONTEXT_COLORS='1234'; # Change go path export GOPATH="$HOME/.go" + +# Add dotfiles (should match the one in bootstrap.sh) +export DOTPATH="$HOME/.dotfiles" diff --git a/linkme/.functions b/linkme/.functions index 5682f83..600e46e 100644 --- a/linkme/.functions +++ b/linkme/.functions @@ -1,5 +1,10 @@ #!/usr/bin/env bash +# Run .install.sh +function appsync () { + bash "$DOTPATH/install.sh" +} + # Start screensaver. function ss () { open -a ScreenSaverEngine