mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
refactor(functions): renamed fish functions
This commit is contained in:
parent
6e518d7ec9
commit
06361e36ec
4 changed files with 8 additions and 8 deletions
8
.config/fish/functions/remove_path.fish
Normal file
8
.config/fish/functions/remove_path.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function remove_path
|
||||
if set -l index (contains -i $argv[1] $PATH)
|
||||
set --erase --universal fish_user_paths[$index]
|
||||
echo "Updated PATH: $PATH"
|
||||
else
|
||||
echo "$argv[1] not found in PATH: $PATH"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue