Skip to content

Instantly share code, notes, and snippets.

@solidsnack
Created December 1, 2013 23:04
Show Gist options
  • Select an option

  • Save solidsnack/7742058 to your computer and use it in GitHub Desktop.

Select an option

Save solidsnack/7742058 to your computer and use it in GitHub Desktop.
Not useful today...but seems like it will come in handy.
function check_path_for_usr_local_bin {
printf %s "$PATH" | while read -d: -r line
do printf '%s\n' "$line"
done | fgrep -qx /usr/local/bin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment