From 46095f4fa02c240e431a8c59b8e9eb76ba932e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20W=C3=BChr?= Date: Mon, 19 Feb 2024 17:45:19 +0100 Subject: [PATCH] Add .profiles --- dotconf/profile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dotconf/profile diff --git a/dotconf/profile b/dotconf/profile new file mode 100644 index 0000000..21246cf --- /dev/null +++ b/dotconf/profile @@ -0,0 +1,24 @@ +function __source() { + if [ -f "$1" ]; then + source "$1" + fi +} + +function __path() { + if [ -d "$1" ] ; then + PATH="$1:$PATH" + fi +} + +if [ -n "$BASH_VERSION" ]; then + __source "$HOME/.bashrc" +fi + +__path "$HOME/bin" +__path "$HOME/.local/bin" +__path "$HOME/.local/share/JetBrains/Toolbox/scripts" +__path "$HOME/.config/composer/vendor/bin" +__source "$HOME/.cargo/env" + +unset __source +unset __path