Skip to content

Instantly share code, notes, and snippets.

@snobu
Created February 26, 2019 09:44
Show Gist options
  • Save snobu/f4dc669d5d68712735fcb719fdf4c0f7 to your computer and use it in GitHub Desktop.
Save snobu/f4dc669d5d68712735fcb719fdf4c0f7 to your computer and use it in GitHub Desktop.
code.fish
# Launch VS Code with 'code' or 'code <path>' from Fish Shell
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