commit e77913899f9960bd1f4e9ec8504ea63f0cbad703 parent 883eb19bc1369490120eb76df6df9c8c0b697de0 Author: Jake Koroman <jake@jakekoroman.com> Date: Wed, 6 Aug 2025 08:42:31 -0400 bash: bashrc cleanup. Diffstat:
M | .bashrc | | | 17 | ++--------------- |
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git 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 $ '