diff options
| author | Jeff Carr <[email protected]> | 2024-12-10 01:48:02 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-10 01:48:02 -0600 |
| commit | 8d692299b0229fe94ba99c26f79e609154c5388a (patch) | |
| tree | 8b790af8bb3e7a3545331d8f2f6d197170c1ce6a /xterm.go | |
| parent | 99eded53985df3d7926486b32edaf530346b85e4 (diff) | |
RunEcho()
Diffstat (limited to 'xterm.go')
| -rw-r--r-- | xterm.go | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -8,6 +8,21 @@ import ( "go.wit.com/log" ) +// not sure why I wrote this or what it is for +// this is because I'm crazy. how crazy you ask? fucking crazy! +// hehe. If you haven't ever written code that you look back +// at like this and go 'what the fuck is this shit', then +// realize that you wrote it, then go 'what the fuck is this shit' +// and then still look at it and wonder, "how early was this. how much did I not know when I wrote this" +// then, if you haven't done those kinds of things, then don't +// ever fucking come up to me and tell me that I'm nuts +// because, you are not as good as me then. It's very complicated +// to work on very complicated things. I don't care how smart you are, +// you can totally forget about shit you wrote and then have to come back to it later + +// also, what the fuck was I thinking with the function 'scanToParent()' as a function that takes +// a pid arg? what? is this like pstree? I'm not sure what I wanted this for +// but it sounds interesting. func scanToParent(pid int) (bool, string) { ppid, err := GetPPID(pid) if err != nil { @@ -35,8 +50,6 @@ func scanToParent(pid int) (bool, string) { case "make": // keep digging for the parent xterm return scanToParent(ppid) - default: - return false, comm } if comm == "bash" { } @@ -81,8 +94,6 @@ func Shell() string { switch envsh { case "/bin/bash": return "bash" - default: - return envsh } return envsh } |
