Skip to content

Instantly share code, notes, and snippets.

@yeradis
Created February 13, 2021 18:43
Show Gist options
  • Save yeradis/45489805ac1ed1888323e375ce6b6ccb to your computer and use it in GitHub Desktop.
Save yeradis/45489805ac1ed1888323e375ce6b6ccb to your computer and use it in GitHub Desktop.
fish shell - vscode code function

create file ~/.config/fish/functions/code.fish

function code
    set -x VSCODE_CWD $PWD
    open -n -b "com.microsoft.VSCode" --args $argv;
end

or if you are using the Insiders version:

function code
  set -x VSCODE_CWD $PWD
  open -n -b "com.microsoft.VSCodeInsiders" --args $argv;
end



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