Skip to content

Commit

Permalink
Fixed #6281, ZDOTDIR is awared by opam in now
Browse files Browse the repository at this point in the history
  • Loading branch information
acasta-yhliu committed Nov 15, 2024
1 parent a19d003 commit 0a57d38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/opamStd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,11 @@ module OpamSys = struct
match shell with
| SH_fish ->
Some (List.fold_left Filename.concat (home ".config") ["fish"; "config.fish"])
| SH_zsh -> Some (home ".zshrc")
| SH_zsh -> (
let zsh_home f =
try Filename.concat (Unix.getenv "ZDOTDIR") f
with Not_found -> home f in
Some (zsh_home ".zshrc"))
| SH_bash ->
let shell =
(try
Expand Down

0 comments on commit 0a57d38

Please sign in to comment.