luis_llanes
luis_llanes
TTCTheo's Typesafe Cult
Created by luis_llanes on 4/23/2024 in #questions
(windows 11) alias for pnpm doesn’t work in VS code
I figured it out. I'll share what I did in case you need it sometime or anyone else runs into this annoying set up I ended up doing this: "terminal.integrated.profiles.windows": { "PowerShell": { "source": "PowerShell", "args": ["-NoExit", "-Command", "& Set-Alias -Name pn -Value pnpm"] }, "Git Bash": { "source": "Git Bash", "args": ["--login"] } }, For the powershell terminal I had to pass the alias directly into the command that will execute every time i open a new terminal.. That was the only way I made it work. For the GitBash, I could just tell VSCode to run the user profile everytime with "--login" (references "C:\Users\USERNAME.bashrc" It's where my alias is defined). For more info you can check this reference https://stackoverflow.com/questions/37104273/how-to-set-aliases-in-git-bash-for-windows
11 replies
TTCTheo's Typesafe Cult
Created by luis_llanes on 4/23/2024 in #questions
(windows 11) alias for pnpm doesn’t work in VS code
Yes, I wanted to set powershell as it is the default but I’ll rather set up bash instead. Thank you!
11 replies
TTCTheo's Typesafe Cult
Created by luis_llanes on 4/23/2024 in #questions
(windows 11) alias for pnpm doesn’t work in VS code
IT RUNS BUT IT DOESN'T SET THE ALIAS. >>>setting.json in VScode "terminal.integrated.defaultProfile.windows": "PowerShell", "terminal.integrated.profiles.windows": { "PowerShell": { "source": "PowerShell", "args": [ "-NoExit", "-Command", "& 'C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1'" ] }, } That's supposed to run the script where i define the alias, It does, and I know it because This is the script and the echo runs eberytime i open a new terminal in vs code >>>>profile.ps1 Set-Alias -Name pn -Value pnpm echo "Hello from profile.ps1 | alias should be set up"
11 replies
TTCTheo's Typesafe Cult
Created by luis_llanes on 4/23/2024 in #questions
(windows 11) alias for pnpm doesn’t work in VS code
Update: still can't make it work. I've tried many different settings.json configurations but none seem to work. I've tried following this guide https://code.visualstudio.com/docs/terminal/profiles#:~:text=To%20add%20Windows%20PowerShell%20as,set%20it%20as%20your%20default. :c
11 replies
TTCTheo's Typesafe Cult
Created by luis_llanes on 4/23/2024 in #questions
(windows 11) alias for pnpm doesn’t work in VS code
Ohh didn’t know by default the vs code terminal was running a different profile, yes, that might be it, I’ll check that thank you!
11 replies