From 6299ba4eb1b16b6aea4e765f34efe2cf5f2c68aa Mon Sep 17 00:00:00 2001 From: Spirit Date: Mon, 29 Jul 2024 06:30:00 +0300 Subject: [PATCH] Source global definitions in `.bashrc` --- .bashrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index d44df0a..eb0515d 100644 --- a/.bashrc +++ b/.bashrc @@ -1,8 +1,14 @@ # .bashrc -export PATH=$PATH:$HOME/.local/bin +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi -# If not running interactively, don't do anything +# User specific environment +export PATH="$HOME/.local/bin:$HOME/bin:$PATH" + +# If not running interactively, skip the rest [[ $- != *i* ]] && return PS1='[\u@\h \W]\$ '