mattgreen / lucid.fish Goto Github PK
View Code? Open in Web Editor NEWMinimalist, high-performance fish prompt
License: MIT License
Minimalist, high-performance fish prompt
License: MIT License
I tried this over the past few days, and then I found out that my original Fish prompt (.config/fish/functions/fish_prompt.fish
) that I had carefully written and tweaked was just gone. Fortunately, I had a backup, but I don't much like it for packages to erase my files without asking me.
I really enjoy the prompt starting on a new line but when you clear the terminal it clears the line with the current working directory and git status and only shows the second line. No idea if there's a way around this, but figured I'd mention it!
Because we're still using the old one. ๐
You can download the new screenshot here and upload it in Settings โ Social preview: Edit โ.
Hi @mattgreen, I hope it's okay if I open a general questions thread here. I'm looking into making Tide asynchronous, and I think that you're the best person to ask for advice on the matter. I didn't want to just open a new issue for every question I had.
First question: You say that IPC via universal variables is a non-starter. Why is that?
I have a very simple example, but it seems to work perfectly.
function fish_prompt
fish --command 'set -U foo (fish_git_prompt)' &
echo $PWD $foo
end
function on_foo --on-variable foo
commandline -f repaint
end
I like the prompt a lot, but as a user of fish_vi_key_bindings
it is confusing that I cannot see which mode is on. Indicator would be very helpful.
Hi there. I've been enjoying using this prompt for quite a while now!
I do have a request. I frequently find myself suspending jobs and coming back to them later-- this is the primary way that I manage my open code editors, for example (e.g. Ctrl+Z
to suspend open editor, fg
to get it back later). So a count of the number of background jobs is pretty useful for me to see in the prompt.
I've actually already implemented a version of this just for my own personal config, so I'm willing to open a PR for it. Just wanted to hear your thoughts before I did so. Something like this:
function show_jobs_count # ... with a flag to enable or disable this function
set -g jobs_count (jobs | wc -l | xargs echo -n)
if [ $jobs_count != "0" ]
set_color $__embark_primary_cyan
echo -n "+$jobs_count "
end
set_color normal
end
gives:
~/scratch
[I] โฏ nvim whatever
fish: Job 1, 'nvim whatever' has stopped
+1 ~/scratch
[I] โฏ
If this is too obscure of a feature to include, no worries. Thanks again for this project!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.