Created
April 25, 2013 07:58
-
-
Save zeripath/5458204 to your computer and use it in GitHub Desktop.
Set the window (xterm) prompt of a running grunt process e.g. grunt server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// within your grunt file register a task to set the prompt | |
module.exports = function (grunt) { | |
// ... | |
grunt.registerTask('set-prompt', function () { | |
console.log('\u001b]0;grunt ' + process.argv.slice(2).join(' ') + '\u0007'); | |
}); | |
// ... and within your grunt server run section add it... | |
grunt.registerTask('server', function (target) { | |
// ... | |
grunt.task.run([ | |
'set-prompt', | |
//... | |
]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment