Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.444 kb
#!/bin/bash
#
# Functions for setting path
include colon-list-functions.sh
function in_path()
{
# Return 0 if given directory is already in PATH, 1 otherwise
colon_list_contains $PATH $1
}
function path_append()
{
PATH=$(colon_list_append $PATH $@)
}
function path_prepend()
{
PATH=$(colon_list_prepend $PATH $@)
}
function path_remove()
{
# Remove given directories from PATH
PATH=$(colon_list_remove $PATH $@)
}
Jump to Line
Something went wrong with that request. Please try again.