Skip to content

Instantly share code, notes, and snippets.

@zeripath
Created April 25, 2013 07:58
Show Gist options
  • Save zeripath/5458204 to your computer and use it in GitHub Desktop.
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
// 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