Skip to content

Commit

Permalink
playground: Set terminal title (#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Aug 2, 2021
1 parent 537aacb commit 35abe88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/playground/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ func newEtcdClient(endpoint string) (*clientv3.Client, error) {
}

func main() {
dataDir := os.Getenv(localdata.EnvNameInstanceDataDir)
instanceName := dataDir[strings.LastIndex(dataDir, "/")+1:]
fmt.Printf("\033]0;TiUP Playground: %s\a", instanceName)
start := time.Now()
code := 0
err := execute()
Expand Down

0 comments on commit 35abe88

Please sign in to comment.