diff options
| author | Jeff Carr <[email protected]> | 2025-01-17 05:16:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-17 05:16:03 -0600 |
| commit | 4f282cc30200c5896db2ae4677b20c6f8c1f1abc (patch) | |
| tree | 3e7c8c5a1e3981dae05e6cb6117c424c20328da3 /argvAutoshell.go | |
| parent | e40251c7fd36d464b141f4b3f02c8ed80434f7cf (diff) | |
is it possible to make a username argv alias?v0.22.41
Diffstat (limited to 'argvAutoshell.go')
| -rw-r--r-- | argvAutoshell.go | 4 |
1 files changed, 3 insertions, 1 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": |
