We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 096c72d commit b771883Copy full SHA for b771883
bin/dotfiles
@@ -50,6 +50,17 @@ function get_os() {
50
done
51
}
52
53
+# Remove an entry from $PATH
54
+# Based on http://stackoverflow.com/a/2108540/142339
55
+function path_remove() {
56
+ local arg path
57
+ path=":$PATH:"
58
+ for arg in "$@"; do path="${path//:$arg:/:}"; done
59
+ path="${path%:}"
60
+ path="${path#:}"
61
+ echo "$path"
62
+}
63
+
64
# Display a fancy multi-select menu.
65
# Inspired by http://serverfault.com/a/298312
66
function prompt_menu() {
source/10_misc.sh
test/test_path_remove.sh
@@ -1,6 +1,5 @@
1
#!/usr/bin/env bash
2
source ~/.dotfiles/source/00_dotfiles.sh
3
-source ~/.dotfiles/source/10_misc.sh
4
5
e_header "$(basename "$0" .sh)"
6
0 commit comments