Quantcast
Viewing latest article 2
Browse Latest Browse All 4395

/bashrc not getting run when Terminal opens on 22.04

I have to manually source ~/.bashrc every time I open a terminal. This wasn't the case on previous versions of Ubuntu. I also have this in ~/.profile:

if [ -n "$BASH_VERSION" ]; then    # include .bashrc if it exists    if [ -f "$HOME/.bashrc" ]; then        . "$HOME/.bashrc"    fif

I'm physically in front of my Thinkpad and I click the Terminal application. No ssh, no graphical interface, no ~/.bash_profile. Not doing anything special, and this has worked on every other version of Ubuntu.

The output of echo $0 is "bash". echo $SHELL is "/bin/bash"


Viewing latest article 2
Browse Latest Browse All 4395

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>