Skip to content

Commit

Permalink
lib/helpers: define pathmunge() unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Sep 12, 2021
1 parent ffc3b86 commit ed6b404
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,7 @@ all_groups ()
rm "$file"
}

if ! _command_exists pathmunge
then function pathmunge () {
function pathmunge () {
about 'prevent duplicate directories in you PATH variable'
group 'helpers'
example 'pathmunge /path/to/dir is equivalent to PATH=/path/to/dir:$PATH'
Expand All @@ -889,7 +888,6 @@ then function pathmunge () {
fi
fi
}
fi

function __check_precmd_conflict() {
local f # TODO: trim whitespace like bp does
Expand Down

0 comments on commit ed6b404

Please sign in to comment.