Save code.fish in ~/.config/fish/functions
Last active
November 7, 2023 12:49
-
-
Save kcchien/2a119e2c231b49c42a469011285115c6 to your computer and use it in GitHub Desktop.
Visual Studio Code command for Fish shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function code | |
set location "$PWD/$argv" | |
open -n -b "com.microsoft.VSCode" --args $location | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tyvm