Skip to content
Snippets Groups Projects
Commit 6a3c7a3f authored by Bruno Pinto's avatar Bruno Pinto
Browse files

remove deprecated _append_path function

parent 25ef546f
No related merge requests found
# Appends the path to the specified path list. If no list specified,
# defaults to $PATH
function _append_path
set_color red
echo '_append_path function deprecated. Rename to _prepend_path.' >&2
set_color normal
set -l path PATH
if test (echo $argv | wc -w) -eq 2
set path $argv[2]
end
if test -d $argv[1]
if not contains $argv[1] $$path
set $path $argv[1] $$path
end
end
end
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment