mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
fish: remove environment helper
This commit is contained in:
parent
7b78d6bf54
commit
efa444df3d
2 changed files with 0 additions and 22 deletions
|
|
@ -1,11 +0,0 @@
|
||||||
function activate-nix-env \
|
|
||||||
--description "Add a nix environment into path"
|
|
||||||
### Arguments:
|
|
||||||
if [ (count $argv) -ne 1 ]
|
|
||||||
echo "Must provide exactly one argument, the path to be added"
|
|
||||||
return 1
|
|
||||||
end
|
|
||||||
set env_name $argv[1]
|
|
||||||
|
|
||||||
fish_add_path --global "$HOME/.environments/$argv[1]/bin"
|
|
||||||
end
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue