binstubs 228 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. function remove_binstubs_from_path()
  3. {
  4. if
  5. [[ -n "$1" ]]
  6. then
  7. export PATH
  8. PATH=":${PATH}:"
  9. PATH="${PATH//:$1:/:}"
  10. PATH="${PATH//::/:}"
  11. PATH="${PATH#:}"
  12. PATH="${PATH%:}"
  13. fi
  14. }