Skip to content

Commit

Permalink
Merge pull request #17 from kidonng/patch-1
Browse files Browse the repository at this point in the history
feat: use `$EDITOR` as default editor
  • Loading branch information
gazorby committed Aug 15, 2022
2 parents c9d4b5d + 8da1d3a commit 4e71328
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/_fifc_open_file.fish
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ function _fifc_open_file -d "Open a file with the right tool depending on its ty
set filepath "$argv"
end

set -q fifc_editor || set -l fifc_editor "$EDITOR"

set -l file_type (_fifc_file_type "$filepath")

switch $file_type
Expand Down

0 comments on commit 4e71328

Please sign in to comment.