add shell alias
This commit is contained in:
parent
6f8090c1df
commit
bb6e810584
2 changed files with 4 additions and 1 deletions
|
|
@ -62,6 +62,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
git = { # setup your git author
|
git = { # setup your git author
|
||||||
|
username = "satr14"; # forgejo username
|
||||||
|
server = "https://git.satr14.my.id"; # forgejo server url
|
||||||
user = "Satria";
|
user = "Satria";
|
||||||
email = "admin@satr14.my.id";
|
email = "admin@satr14.my.id";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ hostname, flake-path, zsh-theme, ... }: {
|
{ git, hostname, flake-path, zsh-theme, ... }: {
|
||||||
programs = {
|
programs = {
|
||||||
pay-respects = {
|
pay-respects = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -64,6 +64,7 @@
|
||||||
"wm-disp" = "wm-ctl dispatch dpms";
|
"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\")";
|
"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";
|
"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)";
|
"mcl" = "portablemc start -l $(cat ~/.minecraft/portablemc-launch-params.json | jq -r .email) $(cat ~/.minecraft/portablemc-launch-params.json | jq -r .version)";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue