function addpaths if test (count $argv) -lt 1 echo "Usage: addpaths [more paths...]" return 1 end for p in $argv if not contains -- $p $fish_user_paths fish_add_path -U $p end end echo "Updated PATH: $PATH" end