From 72ef502512a3c310d9f39a02c574e4babe17be01 Mon Sep 17 00:00:00 2001 From: FaultyBranches Date: Sun, 29 Mar 2026 16:40:54 -0500 Subject: [PATCH] refactor: vastly more readable `path` function by removing cruft and the loop --- zsh/zsh_functions | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/zsh/zsh_functions b/zsh/zsh_functions index 2548524..dbdb8f0 100644 --- a/zsh/zsh_functions +++ b/zsh/zsh_functions @@ -22,10 +22,5 @@ function new_note() { } function path() { - set -f - array=(${${PATH}//:/\\n}) - for element in "${array[@]}" - do - echo $element - done + echo -e ${PATH//:/\\n} }