Skip to content

Instantly share code, notes, and snippets.

@ninmonkey
Last active August 2, 2023 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninmonkey/8789def57fdb8a275a829a646e39b67e to your computer and use it in GitHub Desktop.
Save ninmonkey/8789def57fdb8a275a829a646e39b67e to your computer and use it in GitHub Desktop.
Pwsh Config i Vs Code - temp example.ps1

settings.json

{
    "powershell.startAutomatically": true,
    "powershell.enableProfileLoading": true,
    "powershell.integratedConsole.showOnStartup": true,
    "powershell.integratedConsole.suppressStartupBanner": false,
    "powershell.promptToUpdatePackageManagement": false,
    "powershell.promptToUpdatePowerShell": false,
    "terminal.integrated.profiles.windows": {
        "terminal.integrated.profiles.windows": {
        "Pwsh🐒 -Nop": {
            "color": "terminal.ansiGreen",
            "overrideName": true,
            "path": [
                "pwsh.exe",
                "C:/Program Files/PowerShell/7/pwsh.exe"
            ],
            "args": [
                "-NoProfile",
                "-NoLogo"
            ],
            "icon": "terminal-powershell"
        },       
        "Pwsh🐒": {
            "color": "terminal.ansiYellow",
            "overrideName": true,
            "path": [
                "pwsh.exe",
                "C:/Program Files/PowerShell/7/pwsh.exe"
            ],
            "args": [
                "-NoLogo"
            ],
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
        "Git Bash": {
            "source": "Git Bash",
            "icon": "terminal-bash"
        },
        "WinPosh? (auto?)": {
            "overrideName": true,
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Pwsh -NoProfile": {
            "overrideName": true,
            "path": [
                "pwsh.exe",
                "C:/Program Files/PowerShell/7/pwsh.exe"
            ],
            "args": [
                "-NoProfile",
                "-NoLogo"
            ],
            "icon": "terminal-powershell"
        },
        "Win PS -NoP": {
            "overrideName": true,
            "icon": "arrow-both",
            // "icon": "",
            "path": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
            "args": [
                "-NoLogo",
                "-NoProfile"
            ]
        },
    
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment