Git Product home page Git Product logo

Comments (9)

Drllap avatar Drllap commented on May 26, 2024 1

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.

Drllap avatar Drllap commented on May 26, 2024 1

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.

Drllap avatar Drllap commented on May 26, 2024

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.

davidkna avatar davidkna commented on May 26, 2024

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.

Drllap avatar Drllap commented on May 26, 2024

bash-preexec isn't even installed

from starship.

davidkna avatar davidkna commented on May 26, 2024

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.

bestlem avatar bestlem commented on May 26, 2024

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.

Drllap avatar Drllap commented on May 26, 2024

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:
image

from starship.

wez avatar wez commented on May 26, 2024

Relevant issue in upstream:

from starship.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.