From 8cc057295877c6088c7733a52538373f0abbbd9e Mon Sep 17 00:00:00 2001 From: ZaxonXP Date: Thu, 14 Jan 2021 13:55:23 +0100 Subject: [PATCH] Put find output in a separate variable It turned out that it did not work in one go (it complained about not possible substitution). When using separate LOC variable it did work. --- .config/shell/profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/shell/profile b/.config/shell/profile index 06831cbb..f1b83d21 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -6,8 +6,10 @@ # to clean up. # Adds `~/.local/bin` to $PATH -export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}" +LOC=$(find ~/.local/bin -type d -printf %p:) +export PATH="$PATH:${LOC%%:}" +unset LOC unsetopt PROMPT_SP # Default programs: