GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing worktrunk.dev — Shell integration Shell integration
Why shell integration existsSection titled “Why shell integration exists”A subprocess can’t change its parent shell’s directory, so InstallationSection titled “Installation”See Keep each initialization statement on its own line for automatic detection and removal. Customized initialization lines must be managed manually. Files createdSection titled “Files created”
PowerShell detection on Windows: When running from cmd.exe or PowerShell, both PowerShell profile files are created automatically. When running from Git Bash or MSYS2, PowerShell is skipped (use See Checking statusSection titled “Checking status”Run Warning messagesSection titled “Warning messages”When shell integration isn’t working, “shell wrapper is out of date”Section titled ““shell wrapper is out of date””Meaning: The active shell has a wrapper from an older Worktrunk version loaded, which can’t follow a directory change. Fix: Run “shell integration not installed”Section titled ““shell integration not installed””Meaning: The current shell has no installed Worktrunk initialization line or wrapper file. The current shell is detected from the process tree (falling back to Fix: Run “shell integration installed but not active”Section titled ““shell integration installed but not active””Meaning: Shell integration is configured for the current shell, but the shell function isn’t loaded in this session — usually because the session was started before installation. Fix: Start a new terminal or run “ran ./path/to/wt; shell integration wraps wt”Section titled ““ran ./path/to/wt; shell integration wraps wt””Meaning: The binary was invoked with an explicit path (like Fix: Use “ran git wt; running through git prevents cd”Section titled ““ran git wt; running through git prevents cd””Meaning: Fix: Use “Alias bypasses shell integration”Section titled ““Alias bypasses shell integration””Meaning: The alias invokes the binary directly, bypassing the shell function that changes directories. Fix: Change the alias to point to the function name instead of the binary:
How the shell wrapper worksSection titled “How the shell wrapper works”The shell wrapper (installed by
Simplified example (the actual wrapper also handles completions and edge cases): Debugging checklistSection titled “Debugging checklist”1. Check whether the wrapper is loadedSection titled “1. Check whether the wrapper is loaded”2. Check whether the wrapper is loaded (PowerShell)Section titled “2. Check whether the wrapper is loaded (PowerShell)”3. Check the shell config fileSection titled “3. Check the shell config file”These commands show the initialization line and its line number. 4. Check whether directive files are setSection titled “4. Check whether directive files are set”5. Test directive files manuallySection titled “5. Test directive files manually”Common issuesSection titled “Common issues”Shell integration works in the terminal but not in an IDE terminalSection titled “Shell integration works in the terminal but not in an IDE terminal”IDE terminals may use different shell configs. Check:
Completions not workingSection titled “Completions not working”Completions are installed alongside shell integration. If they’re missing: Windows Git Bash issuesSection titled “Windows Git Bash issues”If you see path issues, make sure you’re on a recent Git for Windows version. Environment variablesSection titled “Environment variables”
See alsoSection titled “See also”
| ||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |