Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

stop gulp from changing shell/cmd title name

When gulp is called the it changes my cmd (windows) title to: "gulp"

I want the window name to stay as it was

I know I can use https://www.npmjs.com/package/gulp-shell but this seems like an overkill

I mean that if I call batch script

title mytitle
gulp .

the window's title is "gulp" and not "mytitle"

like image 909
Nahum Avatar asked Aug 22 '16 13:08

Nahum


1 Answers

Use process.title as stated in this issue : concat process.title instead of overwrite. You shoud use process.cwd() to get the directory where the gulpfile is running.

somewhere in your gulpfile, according to your need, write:

process.title = process.cwd();
like image 141
Manu Verhanneman Avatar answered Nov 02 '22 22:11

Manu Verhanneman