From 8f2396b88d243d901100e092f972d1d780a4a610 Mon Sep 17 00:00:00 2001 From: Maxim Therrien Date: Thu, 2 Jan 2025 20:03:06 -0500 Subject: [PATCH] Update /etc/skel/.bashrc to expand $HOME path See https://stackoverflow.com/questions/44704710/tilde-char-in-path-e-g-path-bin-usr-bin-bin/44704799#44704799 Non-sh utilities cannot expand ~ in a string. --- includes.container/etc/skel/.bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes.container/etc/skel/.bashrc b/includes.container/etc/skel/.bashrc index 4297d22..40f33c9 100644 --- a/includes.container/etc/skel/.bashrc +++ b/includes.container/etc/skel/.bashrc @@ -84,9 +84,9 @@ if [ -x /usr/bin/dircolors ]; then alias ls='ls --color=auto' fi -# extend $PATH to read from ~/.local/bin so the user finds their -# own binaries -export PATH="~/.local/bin":$PATH +# Prepend ~/.local/bin to the PATH in order to give precedence to user-installed +# executables. +export PATH="$HOME/.local/bin:$PATH" # !!! LOOKING FOR CUSTOM ALIASES? !!! # You may want to put all your additions into a separate file like