Comments (2)
Commands like brew install no longer work as the shell believes there's no current working directory
No, brew (or whatever a "shell-init" is) doesn't believe there is. The error message you get comes from that, not fish.
And like you see, both ls
(another external command) and fish's builtin pwd
handle this just fine, brew is pretty harsh and refuses to run a command that probably doesn't need the working directory, so they want you to cd .
.
There isn't really a way to handle this for fish that doesn't involve opening the working directory on every command, which doesn't sound like a great use of resources.
This is with fish 3.3.1 using macOS Sonoma.
Sidenote: fish 3.3.1 is 15% of all commits ever made to fish behind (counting up to the last release). Please upgrade if you wish to report an issue.
from fish-shell.
Both ls
and pwd
"work" even if the current directory has been deleted, so I figured they were doing something else. brew
is not the only tool that broke in this case, but it was the only one I had logs handy for - plus the shell-init
error made me think it could be a shell thing. Anyway, thanks for taking a look!
I've verified the same behavior occurs on fish 3.7.0 fwiw.
from fish-shell.
Related Issues (20)
- Vi-mode poor autosuggestion behavior / Invalid cursor placement and length in normal mode HOT 3
- Autosuggestions are sometimes not offered after recalling a previous line from history HOT 1
- Pager selection issues
- How to replace multi-line string variable in shell script HOT 2
- Inserting clipboard using OSC 52 HOT 12
- Local function definition? HOT 2
- Fish autocomplete sometimes forgets history and goes back in time HOT 17
- feature: prompt_pwd function support hyperlinks HOT 5
- erroneous function parsing HOT 2
- Fish git prompt doesn't show (T)ype changes
- [Feature] `bind` command `ensure-selection-start` HOT 2
- Can't accept autosuggestion word and insert other character using bind HOT 3
- Special character in universal variable results in warning message on startup ("Unable to parse universal variable message") HOT 3
- Cross-compilation fails when setting the `PKG_CONFIG_PATH` environment variable HOT 3
- Add Support For Ncursesw HOT 1
- [Feature] abbr --set-cmd-position HOT 5
- requested feature: ai generated command HOT 1
- option to make tab completions for files and directories sorted by modification time HOT 5
- Merging history files HOT 1
- [Pager] `fish_pager_color_selected_completion` is ignored by the parenthesis 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 fish-shell.