Skip to content

Instantly share code, notes, and snippets.

@exceedsystem
Created December 21, 2020 12:15
Show Gist options
  • Save exceedsystem/08565f2d7287668271c54d3d4bf31d88 to your computer and use it in GitHub Desktop.
Save exceedsystem/08565f2d7287668271c54d3d4bf31d88 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