From bb6e8105843912ae8cb521156f3aaa0d22380a41 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 14 Mar 2026 08:17:08 +0700 Subject: [PATCH] add shell alias --- lib/options.nix | 2 ++ modules/home/core/zsh.nix | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/options.nix b/lib/options.nix index b865080..c25e663 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -62,6 +62,8 @@ }; git = { # setup your git author + username = "satr14"; # forgejo username + server = "https://git.satr14.my.id"; # forgejo server url user = "Satria"; email = "admin@satr14.my.id"; }; diff --git a/modules/home/core/zsh.nix b/modules/home/core/zsh.nix index ca4bd4f..8ce99d3 100644 --- a/modules/home/core/zsh.nix +++ b/modules/home/core/zsh.nix @@ -1,4 +1,4 @@ -{ hostname, flake-path, zsh-theme, ... }: { +{ git, hostname, flake-path, zsh-theme, ... }: { programs = { pay-respects = { enable = true; @@ -64,6 +64,7 @@ "wm-disp" = "wm-ctl dispatch dpms"; "gh-author-setup" = "git config user.name $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user | jq -r .login) && git config user.email $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user/emails | jq -r \".[1].email\")"; + "fg-create-repo" = "git remote add origin ${git.server}/${git.username}/$(basename $PWDw).git && git push"; "convert-pdf" = "libreoffice --headless --convert-to pdf"; "mcl" = "portablemc start -l $(cat ~/.minecraft/portablemc-launch-params.json | jq -r .email) $(cat ~/.minecraft/portablemc-launch-params.json | jq -r .version)";