1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Add gsr alias

This commit is contained in:
RGBCube 2024-02-07 09:59:02 +03:00
parent 88264f29bb
commit 30eccf25e0
No known key found for this signature in database

View file

@ -53,6 +53,19 @@ homeConfiguration {
gst = "git status";
};
programs.nushell.configFile.text = lib.mkAfter ''
# Sets the remote origin to the specified user and repository on my git instance
def gsr [user_and_repo: string] {
let user_and_repo = if ($user_and_repo | str index-of "/") != -1 {
$user_and_repo
} else {
"RGBCube/" + $user_and_repo
}
git remote add origin ("https://git.rgbcu.be/" + $user_and_repo)
}
'';
programs.git = enabled {
package = pkgs.gitFull;