-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Jobs module reports jobs that don't seem to exist #972
Comments
Well that's funny. What are the outputs of |
|
Turns out there is in fact two jobs running during the shell prompt generation, but which are not running afterward. I am trying to figure out where they came from; very probably it's something in my bashrc. |
Yep, turns out it's user error. At some point in the distant past, I installed https://github.com/rupa/z and forgot about it. It's responsible for the jobs. (BTW I figured this out by hacking the starship_precmd to output the jobs to a file, and then compared that to the functions defined in |
I didn't know that Is there a way for you to fix this (e.g. changing order of function evaluation for |
I have fixed this for myself by removing I would recommend a note in the docs for the jobs module about how this works with the shell precommand, and if you have weird behavior with the jobs module you can start debugging by investigating your shell configuration. (It would have been helpful if there were a debugging option to actually print the jobs it detects, not just count them, but since you convert to the count inside the shell integration, that's probably not viable.) |
I was also getting this with |
I found this issue because I have the same problem. Having learned that z.sh is the culprit I experimented by editing my bashrc and moving the line that loads z.sh to below the line that loads starship. This fixed the issue for me. |
As with @aDotInTheVoid, I got the same issue with A quick fix is simply to move the iTerm2 line to load after |
To provide some context as to how the It would seem that if there are lingering effects to running |
In my case the output of |
Same problem using fasd (alternative to z) too |
I think this will be fixed in the next release thanks to #1897. |
Current Behavior
When my shell is in my home directory, the jobs module doesn't show (because it's below the threshold, I assume). When I am in any other directory, the jobs module shows
✦2
. However, running thejobs
command prints nothing; there are not actually any background jobs.Expected Behavior
The jobs module should only list jobs when they exist.
Additional context/Screenshots
Environment
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Relevant Shell Configuration
Starship Configuration
The text was updated successfully, but these errors were encountered: