Skip to content
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

Fix for mosh and some other non-interactive shells #963

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .bashrc
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
[ -n "$PS1" ] && source ~/.bash_profile;
# Only source ~/.bash_profile if interactive shell
# Provide some extra PATH locations for things using a non-interactive shell
# such as git-annex, mosh, and rsync via homebrew.

if [[ -n "$PS1" ]] ; then
source ~/.bash_profile
elif
PATH=$HOME/bin:/usr/local/bin:/opt/homebrew/bin:$PATH
return
fi