Comments (8)
@ivan-the-terrible I don't mind solving this one. Nushell is my daily driver anyways 😃
from oh-my-posh.
Sounds good, I'm very curious to see the result!
from oh-my-posh.
Hey @JanDeDobbeleer, you maight try checking $nu.history-enabled
. I'm hopeful that will work and solve this probem if put in your nushell script.
from oh-my-posh.
Man I am so stupid. I didn't realize this was actually affecting code here in the codebase 🤦🏼 I thought it was just an issue with the way the history
command worked in Nu. My bad, @JanDeDobbeleer nice fix!
from oh-my-posh.
@ivan-the-terrible hope you learned something!
from oh-my-posh.
Unfortunately, this is not really related to oh-my-posh...
First and foremost, I've never used Nushell, but this looks really cool! So thanks for that discovery.
So I've been able to duplicate this problem within a fresh Ubuntu installation (via Docker) and have Nushell produce the same output without oh-my-posh installed:
Your question seems a little oxymoronic. nu --no-history
will not retain history.
Piping history
to last 1
will produce an error... because there is no history. Thus, history
returns null and last
expects a list, binary or range input.
@JanDeDobbeleer, in my opinion, this can be closed.
from oh-my-posh.
@ivan-the-terrible we can always check if history is available. If not, default to something sensible and not crash the initialization.
from oh-my-posh.
That makes sense. I didn't realize oh-my-posh officially supported nushell. What would be the course of action? To raise an issue or attempt to put out a PR there?
from oh-my-posh.
Related Issues (20)
- Linux inside WSL installation docs need more detail HOT 5
- icons not appearing. Help !!!
- tooltips ignored (?) HOT 52
- command rewrited glitch
- Add maven support
- Cache font list HOT 4
- Kubernetes integration HOT 7
- Strange error when trying to load OMP (ubuntu, bash)
- Empty line is added in bash HOT 3
- OMP Startup very slow due to update check HOT 7
- p10k-like instant prompt HOT 4
- Initial `/` not being displayed HOT 3
- Access .Ahead and .Behind of the push-remote in the built-in Git segment
- Right align and spacing issues inside neovim terminal HOT 7
- Update on Windows always fails with "access denied" HOT 3
- Right-aligned prompt bugs out when previous output is not newline-terminated HOT 4
- Some Modules are not working after update from Scoop HOT 4
- [WT+Pwsh] Path and other goodies won't render since last update (21.28.0) HOT 19
- The conda environment name disappears when windows powershell enters the user's root directory. HOT 3
- Windows Terminal - Powershell slow to load when internet disabled/ network offline
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 oh-my-posh.