Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add VS code alias to Fish-Sell in MacOS. #14

Open
mvpdw06 opened this issue Nov 22, 2016 · 0 comments
Open

How to add VS code alias to Fish-Sell in MacOS. #14

mvpdw06 opened this issue Nov 22, 2016 · 0 comments

Comments

@mvpdw06
Copy link
Owner

mvpdw06 commented Nov 22, 2016

Step

  1. Change to fish function folder.
cd ~/.config/fish/functions
  1. Add a function file named "code.fish".
  2. Edit code.fish file.
function code
    set location "$PWD/$argv"
    open -n -b "com.microsoft.VSCode" --args $location
end
  1. Then you can command "code ." to open folder in VS code successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant