summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index a7c1d62..afd7cb1 100644
--- a/main.go
+++ b/main.go
@@ -35,6 +35,8 @@ func main() {
me.sh.GoodExit("do what?")
}
+ setTitle("wit %s" + me.sh.Cmd)
+
// Standard subcommand handling starts here
var s string
var err error
@@ -47,8 +49,9 @@ func main() {
if argv.Linux != nil {
if argv.Linux.Rdate != nil {
s, err = doRdate()
+ } else {
+ setTerminalTitle("pinging google", "ping", []string{"google.com"})
}
- setTerminalTitle("pinging google", "ping", []string{"google.com"})
}
if argv.Build != nil {