From 81be48945c271f17fd6525364ad0765b8583ca4c Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 30 Jul 2024 19:55:01 +0200 Subject: [PATCH] zsh: cleanup --- .config/zsh/.zprofile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 14ae02c7a..01f31dc9f 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -132,9 +132,9 @@ for NEW_PATH in \ "$(gem environment gempath)" \ "$(find -L ~/.local/bin -type d -printf %p: | sed 's/.$//')" do - case ":$PATH:" in - *":$NEW_PATH:"*) ;; - *) export PATH="$NEW_PATH:$PATH" ;; + case ":${PATH}:" in + *":${NEW_PATH}:"*) ;; + *) export PATH="${NEW_PATH}:${PATH}" ;; esac done