diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2025-08-06 08:42:31 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2025-08-06 08:42:31 -0400 |
| commit | e77913899f9960bd1f4e9ec8504ea63f0cbad703 (patch) | |
| tree | 03ae7737b4f36938a4657e379c8f1eaf1c976dd3 | |
| parent | 883eb19bc1369490120eb76df6df9c8c0b697de0 (diff) | |
bash: bashrc cleanup.
| -rw-r--r-- | .bashrc | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -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 $ ' |
