Force order of functions and aliases
This commit is contained in:
@@ -34,3 +34,8 @@ function prepend_path() {
|
|||||||
function uniq_path() {
|
function uniq_path() {
|
||||||
echo "$PATH" | tr ":" "\n" | awk '!seen[$0]++' | tr "\n" ":" | sed -r 's/:+/:/g' | sed -r 's/^:|:$//g'
|
echo "$PATH" | tr ":" "\n" | awk '!seen[$0]++' | tr "\n" ":" | sed -r 's/:+/:/g' | sed -r 's/^:|:$//g'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function can_run() {
|
||||||
|
local application="$1"
|
||||||
|
command -v "$application" > /dev/null
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user