From 0be471d452bead215249a2f1bbf18e4d6678a385 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 6 May 2024 23:07:59 +0200 Subject: [PATCH] bash: fix PATH --- .bash_extra | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.bash_extra b/.bash_extra index 744fa77..02ffa93 100644 --- a/.bash_extra +++ b/.bash_extra @@ -1,9 +1,10 @@ #!/bin/bash # source extra files -source ./.bash_aliases -source ./.bash_functions -source ./.bash_ps1 +# https://stackoverflow.com/questions/6659689/referring-to-a-file-relative-to-executing-script +source "${BASH_SOURCE%/*}/.bash_aliases" +source "${BASH_SOURCE%/*}/.bash_functions" +source "${BASH_SOURCE%/*}/.bash_ps1" ### PATH # add my scripts to PATH @@ -51,3 +52,6 @@ export LESS='--mouse --wheel-lines=3 eFRX' # deaktiviere alias von ll, wird von mir explizit gesetzt unalias ll 2>/dev/null + + +~