The VS Code editor is nice, and I'm looking forward to using it to learn a bit more about javascript and node.js. The installation instructions describe the setup for bash
-like shells, but I am a savage and would like to use it with csh
. I can probably hack something together, but is there an obvious translation of
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* }
into a csh
alias
?
I think this sort of works:
alias code "setenv VSCODE_CWD ${PWD} && open -n -b "com.microsoft.VSCode" --args $*"
but I think I really want a way to make VSCODE_CWD
"local" to the alias, as in the bash version.
You can also create a code
script in your PATH
with the contents:
#!/bin/sh
VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With