Skip to content

Commit

Permalink
Use type instead of which (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackedd authored Jan 4, 2023
1 parent 8bbe2d6 commit 57ddb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/__nvm_run.fish
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function __nvm_run
set stack (status stack-trace | grep called | cut -d " " -f 7)
set count (count $argv)

if type -fq $argv[1]; and test "$stack[1]" != (which $argv[1])
if type -fq $argv[1]; and test "$stack[1]" != (type -fP $argv[1])
set count (count $argv)
if test "$count" -ge 2
set args $argv[2..-1]
Expand Down

0 comments on commit 57ddb12

Please sign in to comment.