# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
export PATH=$PATH:/home/usr/.spicetify
. "$HOME/.controller_config"
.bash_profile.old
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export PATH=$PATH:/home/usr/.spicetify
. "$HOME/.controller_config"
I realized there is a leftover of Spicetify app I no longer use in the both files.
.bashrc does look inside /etc/bashrc and sources anything it finds, but it’s unlikely that they have been changed; you might want to look at both of them to make sure that they don’t have really recent timestamps on them. ls -al /etc/profile /etc/bashrc and eyeball the timestamps for “suspiciously recent”
Also check to see if you have a ~/.bashrc.d directory - I’d not expect you to find one unless you or something has created it and put stuff inside.
If that all turns up no smoking gun, then what could copy the originals back into your ~ directory from /etc/skel and try a reboot. If the problem comes back then we know for definite that it’s something these scripts are sourcing and we can dig deeper if you have the stomach for it.
If this does bring the “argument too long” messages back to life then you’ll be reaching for the live USB again to remove them and regain control.
Only difference between the skeletons and your .old ones is the controller configuration file. As pg states post that and if its clean then either should be functionally equivalent.
You could take the .old extension off the filenames now to make them be used again in bash shells.
Once you’re confident you can get back into your system, you could then add back the . "$HOME/.controller_config" line to one of the files (no need to have it in both). Since you have radically shrunk down the controller_config file, that should hopefully work fine now.
Then investigate with the developers of whatever package creates that file to find out what happened - obviously you don’t want another update to come and blow up the size of the file, or you’ll be facing the same problem again.