Skip to content

Commit

Permalink
Merge pull request #2816 from ckipp01/fixFish
Browse files Browse the repository at this point in the history
fix: fix fish config location when XDG_CONFIG_HOME is used
  • Loading branch information
tgodzik committed Aug 3, 2023
2 parents 3e212b4 + af26e0a commit 8d93005
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 8d93005

Please sign in to comment.