summaryrefslogtreecommitdiff
path: root/xterm.go
diff options
context:
space:
mode:
Diffstat (limited to 'xterm.go')
-rw-r--r--xterm.go19
1 files changed, 15 insertions, 4 deletions
diff --git a/xterm.go b/xterm.go
index b5aa6f2..a867625 100644
--- a/xterm.go
+++ b/xterm.go
@@ -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
}