From da21457f0e7ed5ad8eb96d06fa87d04f38a67bd5 Mon Sep 17 00:00:00 2001 From: Joe Lillibridge Date: Wed, 30 Oct 2024 13:35:16 -0500 Subject: [PATCH] point to aliases correctly --- .config/zsh/aliases | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/zsh/aliases b/.config/zsh/aliases index 0c5c133..aa1f6ef 100644 --- a/.config/zsh/aliases +++ b/.config/zsh/aliases @@ -59,6 +59,9 @@ if [ "$system_type" = "Darwin" ]; then [ ! -v "$IN_VS_CODE_TERMINAL" ] && alias iterm="open -a iTerm" fi -if [ -e ./aliases.local ]; then - source ./aliases.local +if [ -e "${0:a:h}"/aliases.local ]; then + source "${0:a:h}"/aliases.local +else + echo "$(pwd): Couldn't find aliases.local!" + echo "Maybe: ${0:a:h}/aliases.local" fi