Skip to content

Terminal suggest snippets #210983

Open
Open
@cpendery

Description

@cpendery

I'd like if vscode's shell integration allowed injecting command aliases from the settings.json file. It would be really helpful to allow projects with a range of shells/os's to share a common set of commands

Settings.json

{
  "terminal.integrated.shellIntegration.aliases":  {
    "gp": "git push"
  }
}

Pwsh Injected Command

function __VSCode-<aliasName>() {
  <aliasCommand> $args
}
Set-Alias -Name '<aliasName>' -Value '__VSCode-<aliasName>'

Bash/Fish/Zsh Injected Command

alias <aliasName>='<aliasCommand>'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions