-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.bashrc is running twice when SSH into remote server #537
Comments
Sorry for the slow reply. I was busy last week, and I don't have an idea what could cause the behavior in your environment. I need to collect information. What would be the result if you replace if [[ $(hostname) != "vlgsplts02" ]] && [[ $(hostname) != "dlm-lts01" ]]; then
- echo "Hello $USER"
+ declare -p BASHPID BASH_SOURCE BASH_LINENO >&2
fi |
Thanks for your reply and your support in analyzing this issue. After modifying
Can you conclude from this output why |
Thank you for the information. So What is your distribution? I'd say
I searched. For example, openSUSE This time, I think you can just comment out the " |
Actually I'm running SLES, but this should be equal to openSUSE. I will now modify Update: |
Hi,
I deployed ohmybash successfully.
I customized
.bashrc
in order to start tmux session automatically when SSH into a remote server.However,
.bashrc
is executed twice.I added this code to
.bashrc
and now I get this in CLI:
![image](https://private-user-images.githubusercontent.com/12523591/308946162-a8c89688-6def-4043-9d8f-133a88dd6579.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NzIxMDUsIm5iZiI6MTcyMjk3MTgwNSwicGF0aCI6Ii8xMjUyMzU5MS8zMDg5NDYxNjItYThjODk2ODgtNmRlZi00MDQzLTlkOGYtMTMzYTg4ZGQ2NTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA2VDE5MTY0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVhN2Y0YjFjZTU2ZmZkZDZmNGI5NTA3ZDU0N2IyOTY4YzE3MWQ5Mjc1OWRkODM2ZWVmYmUyMDZhNmIxOWQzNWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Iqm_tgb7eKAw2TFsK_Jb9RAxO2LhaC8_-mv7UZtsJ4Y)
Can you please advise how to fix it?
THX
The text was updated successfully, but these errors were encountered: