Skip to content

Commit

Permalink
fix: fix fish config location when XDG_CONFIG_HOME is used
Browse files Browse the repository at this point in the history
This was previoulsy looking in `.config/.config/fish/config.fish`
  • Loading branch information
ckipp01 committed Aug 3, 2023
1 parent 3e212b4 commit af26e0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/env/src/main/scala/coursier/env/ProfileUpdater.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ import java.nio.file.FileSystemException
case Some(Shell.Fish) =>
val fishConfig = getEnv.flatMap(_("XDG_CONFIG_HOME"))
.map(Paths.get(_))
.orElse(home)
.toSeq
.map(_.resolve(".config/fish/config.fish"))
.map(_.resolve("fish/config.fish"))
.fold(home.map(_.resolve(".config/fish/config.fish")).toSeq)(Seq(_))

fishConfig

Expand Down

0 comments on commit af26e0a

Please sign in to comment.