diff --git a/components/playground/main.go b/components/playground/main.go index ab8f083f1e..baabd28fa7 100644 --- a/components/playground/main.go +++ b/components/playground/main.go @@ -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()