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

Avoid broken bind, complete, color_prompt in nested nix bash #181

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

kachick
Copy link
Owner

@kachick kachick commented Jul 25, 2023

@kachick kachick marked this pull request as ready for review July 27, 2023 09:12
@kachick kachick changed the title Workaround to avoid Nix shell with complete/bind not found Avoid broken bind, complete, color_prompt in nested nix bash Jul 27, 2023
@kachick kachick merged commit d3ca665 into main Jul 27, 2023
7 checks passed
@kachick kachick deleted the fix-bash-complete-not-found-after-nix-direnv branch July 27, 2023 09:14
kachick added a commit that referenced this pull request Jul 27, 2023
eval "$(starship init bash)"
if [ -n "$in_nested_nix_bash" ]; then
# readlink - https://iww.hateblo.jp/entry/20131108/dash
PS1="${IN_NIX_SHELL} - $(readlink /proc/$$/exe)\n$PS1"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the readlink ... does not show anything in macos 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant