Comments (9)
this file: https://github.com/wez/wezterm/blob/main/assets/shell-integration/wezterm.sh is installed in my /etc/profile.d/ and sourced by /etc/profile when starting bash in login mode.
from starship.
Also see item_integration script https://iterm2.com/shell_integration/bash- for the same issue as the weztern and it is very similar code.
link is not working, extra (-)? https://iterm2.com/shell_integration/bash
from starship.
Looking into this a bit more, it looks like these variables are defined in login mode but not in normal mode:
__bp_imported
preexec_functions
precmd_functions
I have no idea what these do or where they are defined but if I unset
them all before calling eval "$(starship init bash)"
starship works
from starship.
starship takes advantage of bash-preexec for integrating its hooks when it is available. Maybe there is some issue with how bash-preexec is sourced in your environment?
from starship.
bash-preexec
isn't even installed
from starship.
The variables you mention lead to the starship init code assuming that bash-preexec
is available. The bp
in __bp_imported
is likely a shorthand for bash-preexec. Please try tracing the login shell init as to how these end up defined (bash -l -x
).
from starship.
Also see item_integration script https://iterm2.com/shell_integration/bash- for the same issue as the weztern and it is very similar code.
from starship.
Wezterm recently updated the embedded bash-preexec version: wez/wezterm@0dedc76
This seems to have fixed my issue, at least most of it.
Now my only issue is that I need to press return activate the starship prompt:
from starship.
Relevant issue in upstream:
from starship.
Related Issues (20)
- Option for a full path as part of the prompt, without `~`
- How to define $username and $character inline on prompt?
- Long execution in directory with automountable directory HOT 3
- WSL detected as Docker HOT 1
- Want oh-my-zsh like middle-of-a-file-name auto completion. HOT 2
- requesting build for x86_64-el8 HOT 1
- Add `ssh_only` to `custom` or create `ssh_only` as a module HOT 2
- Container module returns image when requesting name HOT 1
- Allow to combine properties inside others
- Home directory is in all substitutions cases HOT 3
- pwsh_indicator invalid key on windows HOT 2
- Sudo module spams journald HOT 1
- init command doesn't work on WSL2 HOT 1
- Space after the prompt gets overwritten in a nix-shell HOT 2
- Starship prints current path on resize
- [directory] add an option to add a lendth to truncate_to_repo
- Configurable AWS module expiration time
- When using the dynamic prompt `enable_transience`, apple terminal looses marks
- `execx($(starship init xonsh))` raises `xonsh.tools.XonshError: xonsh: subprocess mode: command not found: '/c/Users/XXXXXXXX/.local/bin/starship.exe'` HOT 3
- Define user-specific symbol or text
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starship.