Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
fix: respect owner flag in clone command Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmWO+e0ACgkQuFOtpdp7 v3owyQ/9GVJUV4BdsXYfaqs0QHsguSg7jdQT3acji8aePm2N0tCDgKnMUgaqxcYF BFYCg9lQLtUkhgasapyyLNApuWxH0v9V4YiFhSNetac+vQOyGQWK5y/d7VN4oCde PCYS6AcEqoxXu4YepRC6fBnBmTqKrfZKrNcSNZI0U+82hs1/TOI+02+HxVUcwwC0 KtHMrCuCiQ4fxSeCuUJF+DAr1i3ICTAndCkerUXqj6Kx+gb4A2TIs5IFJ2FlpW7d gZNxJjhpNAkV52TIaGwoaeOCfxBjvzwob3gUnK/KASPYEmAJKleN4p1tbhPBoE1x 1exFQF+FAEzsTx0pr1WKl8hjgef5Wer41+9UYwjq601uFAQonTtx4RBm9NMYZJUq U2ZQHrZ+XEA9jy6y0JHPseP1JqIppj6bEiF+jXgqupLPPyFPVMOb45/R6uRudPm7 tN70mPdLN1ebpoM2lVQ8O0/75qI1pWVHfzbUuqskIercRwmbhYjDq5+ndQK+rOSc IquGcF9rrhhPUJ+o4xC950e7FdPxyGNpkyeW4xVa1nj/YgrM3nZqIy7W8odQn59s bEma5VC7E4A8nqdmZAfWUWXvX3L8VktedvDSoAjzbrVZBgdqg3fJBTq0evDbiqh7 Pw2XQ9subeVti3U6DxygOEmIYs+TLtyE6SHD8Gt1coHrvzAxi1A= =ZV+d -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
11 months ago
1 changed files, 9 additions(+), 5 deletions(-)
M apps/nogui/nushell/jolheiser.nu -> apps/nogui/nushell/jolheiser.nu
diff --git a/apps/nogui/nushell/jolheiser.nu b/apps/nogui/nushell/jolheiser.nu
index 104803b0a2a50c8e1b87e97bca1233ec090ec1a5..e6f3bfa588e6c4440114b313b1d7aaaf46c91451 100644
--- a/apps/nogui/nushell/jolheiser.nu
+++ b/apps/nogui/nushell/jolheiser.nu
@@ -34,8 +34,6 @@   --forge (-f) = "github": string@"forge types" # Forge type (github, gitea, jojodev, codeberg)
   --owner (-o): string # Owner (default: current dir name)
 ] {
 alias find = fd
-## Aliases ## 
-alias find = fd
 alias cat = bat
   if $forge == 'gitea' {
     $id = 'gt'
@@ -44,13 +42,19 @@     $id = 'jj'
   } else if $forge == 'codeberg' {
     $id = 'cb'
   }
+  mut namespace = ($env.PWD | path basename)
+  if $owner != '' {
+    $namespace = $owner
+  }
   let origin = $'ssh:($id):jolheiser/($repo).git'
-  let upstream = $'($id):($owner)/($repo).git'
+  let upstream = $'($id):($namespace)/($repo).git'
   ^git clone $origin
   cd $repo
-  ^git remote add upstream $upstream
+  if $namespace != 'jolheiser' {
-alias df = duf
 alias du = dust -b -d 1
+## Functions ##
+    ^git fetch upstream
+  }
 }
 
 def fg [args ...string] {