From bcf2d6355f5c648aa43d5a8b3651c04b925899c7 Mon Sep 17 00:00:00 2001 From: Lukas Cech Date: Mon, 20 Jan 2025 15:08:07 +0100 Subject: [PATCH] Add alias for git syncing remote branches, add note to aws credential export alias --- home-manager/common.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/common.nix b/home-manager/common.nix index 3ecbb38..e4bb503 100644 --- a/home-manager/common.nix +++ b/home-manager/common.nix @@ -35,9 +35,11 @@ in { cat = lib.mkDefault "bat --paging=never"; nixfix = lib.mkDefault "nix fmt ./**/*.nix"; + # use eval $(aws-export-credentials) to expose them to environment aws-export-credentials = lib.mkDefault "aws configure export-credentials --format env --profile"; # use curl-aws --aws-sigv4 "aws:amz:region:service" curl-aws = lib.mkDefault "curl -H \"X-Amz-Security-Token: $AWS_SESSION_TOKEN\" --user \"$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY\""; + git-sync-remote = lib.mkDefault "git remote update origin --prune"; } // ( if isDarwin then