diff --git a/zsh/functions/move_to_front_of_path b/zsh/functions/move_to_front_of_path deleted file mode 100644 index ac835ce..0000000 --- a/zsh/functions/move_to_front_of_path +++ /dev/null @@ -1,10 +0,0 @@ -# Reorders existing entry in PATH to have it at the front -# -# move_to_front_of_path "$HOME/.bin" -# -move_to_front_of_path() { - if [[ ":$PATH:" == *":$1:"* ]]; then - PATH=$(echo $PATH | sed 's#'$1'##g' | sed s/:://g | sed s/:$//g | sed s/^://g) - PATH="$1${PATH:+":$PATH"}" - fi -}