From 4f282cc30200c5896db2ae4677b20c6f8c1f1abc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Jan 2025 05:16:03 -0600 Subject: [PATCH] is it possible to make a username argv alias? --- argvAutoshell.go | 4 +++- main.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/argvAutoshell.go b/argvAutoshell.go index 9648908..94f4793 100644 --- a/argvAutoshell.go +++ b/argvAutoshell.go @@ -3,6 +3,7 @@ package main import ( "fmt" "os" + "os/user" ) /* @@ -20,7 +21,8 @@ func (args) doBashAuto() { argv.doBashHelp() switch argv.BashAuto[0] { case "checkout": - fmt.Println("user devel master") + usr, _ := user.Current() + fmt.Println("user devel master " + usr.Username) case "commit": fmt.Println("--all") case "config": diff --git a/main.go b/main.go index cae7195..2153692 100644 --- a/main.go +++ b/main.go @@ -126,7 +126,7 @@ func main() { doCheckDirtyAndConfigSave() me.found = new(gitpb.Repos) findDirty() - me.forge.PrintHumanTable(me.found) + me.forge.PrintHumanTableDirty(me.found) okExit("") }