osx - Command-line alias for Visual Studio Code on OS X with CSH? -
the vs code editor nice, , i'm looking forward using learn bit more javascript , node.js. installation instructions describe setup bash
-like shells, savage , use csh
. can hack together, there obvious translation of
code () { vscode_cwd="$pwd" open -n -b "com.microsoft.vscode" --args $* }
into csh
alias
?
i think sort of works:
alias code "setenv vscode_cwd ${pwd} && open -n -b "com.microsoft.vscode" --args $*"
but think want way make vscode_cwd
"local" alias, in bash version.
you can create code
script in path
contents:
#!/bin/sh vscode_cwd="$pwd" open -n -b "com.microsoft.vscode" --args $*
Comments
Post a Comment