Skip to content

Indicate when in Homesick shell - #196

Draft
jakeprime wants to merge 1 commit into
technicalpickles:masterfrom
jakeprime:jake/in-shell-indicator
Draft

Indicate when in Homesick shell#196
jakeprime wants to merge 1 commit into
technicalpickles:masterfrom
jakeprime:jake/in-shell-indicator

Conversation

@jakeprime

@jakeprime jakeprime commented Jul 13, 2026

Copy link
Copy Markdown

Set env var after homesick cd. This allows custom prompts to add a visual indicator that are in a shell within a shell.

I often homesick cd into my dotfiles, and then move around directory a couple of times, and I can't remember if I'm in a subshell or not. This means that exit may or may not do what I think it will. By setting HOMESICK_SHELL when inside the sub-shell I can add it to my custom prompt:

image

Set env var after `homesick cd`. This allows custom prompts to add a
visual indicator that are in a shell within a shell.
@jakeprime
jakeprime force-pushed the jake/in-shell-indicator branch from 191e398 to 52c4afa Compare July 13, 2026 19:46
@jakeprime

Copy link
Copy Markdown
Author

I didn't actually mean to open this PR here, I meant to open it against my fork! It's a useful feature for me.

But now that it exists, let me know if you would consider including and I'll add a test and add a line or two to the README about it. Otherwise go ahead and close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant