Showing posts with label prompt with bash version. Show all posts
Showing posts with label prompt with bash version. Show all posts

Thursday, April 14, 2016

SSH and login prompt

If you log via SSH and you get a prompt showing only the bash version it means that .bashrc wasn't sourced. SSH sources .bash_profile not .bashrc.
To solve this problem,  create/update .bash_profile with the   following content :

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi
 This is the way to go for docker too :)

Source
http://stackoverflow.com/