mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
11 lines
320 B
Fish
11 lines
320 B
Fish
function deactivate-nix-env \
|
|
--description "Remove a nix environment from path"
|
|
### Arguments:
|
|
if [ (count $argv) -ne 1 ]
|
|
echo "Must provide exactly one argument, the path to be removed"
|
|
return 1
|
|
end
|
|
set env_name $argv[1]
|
|
|
|
fish_remove_path "$HOME/.environments/$argv[1]/bin"
|
|
end
|