Skip to content

Instantly share code, notes, and snippets.

@kcchien
Last active November 7, 2023 12:49
Show Gist options
  • Save kcchien/2a119e2c231b49c42a469011285115c6 to your computer and use it in GitHub Desktop.
Save kcchien/2a119e2c231b49c42a469011285115c6 to your computer and use it in GitHub Desktop.
Visual Studio Code command for Fish shell

Save code.fish in ~/.config/fish/functions

function code
set location "$PWD/$argv"
open -n -b "com.microsoft.VSCode" --args $location
end
@mriot
Copy link

mriot commented Nov 7, 2023

tyvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment