mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
fish: fish_remove_path function
This commit is contained in:
parent
c60be15228
commit
54b7d1290a
1 changed files with 8 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
# source: https://github.com/fish-shell/fish-shell/issues/8604
|
||||
|
||||
function fish_remove_path
|
||||
if set -l index (contains -i "$argv" $fish_user_paths)
|
||||
set -e fish_user_paths[$index]
|
||||
echo "Removed $argv from the path"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue