This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$env.config = { | |
hooks: { | |
pre_prompt: [{ | |
# Search for pixi.toml in the current directory and all parent directories | |
mut project_root = $env.PWD | |
while not ([$project_root, "pixi.toml"] | path join | path exists) { | |
let new_project_root = [$project_root, ".."] | path join | path expand -n | |
if $new_project_root == $project_root { | |
break | |
} |