Add alias for git syncing remote branches, add note to aws credential export alias
This commit is contained in:
parent
9fd1171c2c
commit
bcf2d6355f
@ -35,9 +35,11 @@ in
|
|||||||
{
|
{
|
||||||
cat = lib.mkDefault "bat --paging=never";
|
cat = lib.mkDefault "bat --paging=never";
|
||||||
nixfix = lib.mkDefault "nix fmt ./**/*.nix";
|
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";
|
aws-export-credentials = lib.mkDefault "aws configure export-credentials --format env --profile";
|
||||||
# use curl-aws --aws-sigv4 "aws:amz:region:service"
|
# 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\"";
|
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
|
if isDarwin then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user