Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save djparks/7da87743688a728e62217d2ab487ce38 to your computer and use it in GitHub Desktop.
Save djparks/7da87743688a728e62217d2ab487ce38 to your computer and use it in GitHub Desktop.
An example of 'Bash launcher' macro for VSCodeMacros extension
// [VSCode Macros] extension
// https://marketplace.visualstudio.com/items?itemName=EXCEEDSYSTEM.vscode-macros
const vscode = require('vscode');
/**
* Macro configuration
*/
module.exports.macroCommands = {
LaunchBash: {
no: 1,
func: launchBash
},
};
/**
* Launch the Git Bash
*/
function launchBash() {
vscode.window.createTerminal(
'Git Bash',
'C:/Program Files/Git/bin/bash.exe'
).show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment