Skip to content

Commit

Permalink
fix: Use more idiomatic fish
Browse files Browse the repository at this point in the history
The use of `.` is deprecated in fish, unlike POSIX shells. We can avoid
calling `psub` and pipe directly into source which does the same thing.

https://fishshell.com/docs/current/cmds/source.html
  • Loading branch information
maxnordlund committed Sep 8, 2021
1 parent 30d27cb commit 135d27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asdf.fish
Expand Up @@ -7,7 +7,7 @@ function asdf
switch "$command"
case "shell"
# source commands that need to export variables
. (asdf export-shell-version fish $argv | psub)
command asdf export-shell-version fish $argv | source
case '*'
# forward other commands to asdf script
command asdf "$command" $argv
Expand Down

0 comments on commit 135d27b

Please sign in to comment.