From e77913899f9960bd1f4e9ec8504ea63f0cbad703 Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Wed, 6 Aug 2025 08:42:31 -0400 Subject: bash: bashrc cleanup. --- .bashrc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.bashrc b/.bashrc index cb4776c..4ea9441 100644 --- a/.bashrc +++ b/.bashrc @@ -22,21 +22,8 @@ alias yta="yt-dlp -f bestaudio -x --audio-format mp3 --sponsorblock-remove spons export SHELL export HISTSIZE=5000 -if [[ $- != *i* ]] -then - # We are being invoked from a non-interactive shell. If this - # is an SSH session (as in "ssh host command"), source - # /etc/profile so we get PATH and other essential variables. - [[ -n "$SSH_CLIENT" ]] && source /etc/profile +[ -f /etc/bash/bashrc ] && source /etc/bash/bashrc - # Don't do anything else. - return -fi - -# Source the system-wide file. -[ -f /etc/bashrc ] && source /etc/bashrc - -# Setup eat integration -[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && source "$EAT_SHELL_INTEGRATION_DIR/bash" +[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && source "$EAT_SHELL_INTEGRATION_DIR/bash" PS1='\u@\h \w $ ' -- cgit v1.2.3