Comments (9)
@brandonpittman Yup. That's the pipestatus. See https://fishshell.com/docs/current/language.html#variables-status.
from hydro.
@jorgebucaran Never knew about that. Thanks for the link.
from hydro.
Hydro only shows the exit status AFAIC. Can you share a screenshot?
~/C/hydro main ❱ foo
fish: Unknown command: foo
~/C/hydro main [127]
from hydro.
Example with fish shell 3.2.2 and Hydro a5877e9ef76b3e915c06143630bffc5ddeaba2a1
which is the commit from 2021-05-15:
~/s/p/p/project master ❱ mvn clean test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.892 s
[INFO] Finished at: 2021-11-01T19:08:03+01:00
[INFO] ------------------------------------------------------------------------
~/s/p/p/project master /nix/store/dj7xwrgp4kjl36f09yyqsl1ay8glxk5b-lorri-keep-env-hack-nix-shell 1.8s [1]
Note: this only happens when running a command in a directory which is baked by direnv
and a shell.nix
Nix environment. Running it outside, say in ~
, only the exit code is printed.
~ ❱ zsh -c 'sleep 2; exit 0'
~ 2s ❱ zsh -c 'sleep 2; exit 1'
~ 2s [1]
from hydro.
Hydro only prints the error code when exit code != 0. This must be the git prompt behaving erratically.
Lines 52 to 85 in cf7b198
from hydro.
I often see error codes like [0|1]
. Can’t remember if there’s a type of command that consistently causes that though.
from hydro.
Ok thanks, I assume this has nothing to do with Hydro.
from hydro.
Sorry for commenting on a closed issue, but did you find a solution for this issue? @bwolf
from hydro.
@okkdev unfortunately not.
from hydro.
Related Issues (20)
- Feature request: support for fish_prompt_pwd_dir_length HOT 1
- "error: process ID out of range" when in git directories HOT 2
- Exiting a shell while hydro is still fetching throws error instead of exiting HOT 7
- Issues with job control HOT 7
- Feature Request: Enable Prompt on the next line ala Spaceship HOT 2
- Abbreviations can't be used until async paint is done HOT 1
- Prompt doesn't handle ' in path HOT 11
- Pre/Post prompt customization HOT 13
- Git branch lingers after `prevd-or-backward-word` HOT 4
- Background on the keys representing the vi mode HOT 6
- Coloring of pwd HOT 3
- Add dirty count for repo HOT 7
- hydro sources entire fish config on every prompt
- Handle replication of git base path within full path
- Show rust versions, etc. HOT 1
- Support Nixos Specific prompts HOT 4
- Show hostname if in a remote ssh session HOT 1
- additional variables to customize prompt HOT 6
- Elapsed time includes absolute path to `$pwd` HOT 7
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 hydro.