Skip to content

Instantly share code, notes, and snippets.

@kcchien
Last active November 7, 2023 12:49
Show Gist options
  • Select an option

  • Save kcchien/2a119e2c231b49c42a469011285115c6 to your computer and use it in GitHub Desktop.

Select an option

Save kcchien/2a119e2c231b49c42a469011285115c6 to your computer and use it in GitHub Desktop.

Revisions

  1. Kuang-Cheng Chien revised this gist May 5, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Save code.fish in ~/.config/fish/functions
  2. Kuang-Cheng Chien created this gist May 5, 2018.
    4 changes: 4 additions & 0 deletions code.fish
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    function code
    set location "$PWD/$argv"
    open -n -b "com.microsoft.VSCode" --args $location
    end