favicon here hometagsblogmicrobio cvtech cvgpg keys

I probably need less information

#workflow #life

uncomfyhalomacro | 2024-05-26 | reading time: ~2min

"I probably need less information for your prompts." I told myself and here is why I am convinced.

Experience§

Throughout my adventurous search for the best terminal prompts out there, I am utterly convinced that I don't need fancy terminal prompts. Despite what they have to offer like speed and performance, you only need a handful of information and information you have to re-verify again and again in the terminal.

You might be wondering, "but you need that information". Well, that depends on the scenario.

Let's say, you are in a Julia project, you get the version number of Julia and this glyph "" that may not render properly if your font does not support it. How many times do you have to see it? How many times do you need to see it?

In my experience, I rarely do it. I just usually run ls and call it a day.

I always check the files§

And I rarely look at the fancy version and language indicator. When I work on projects, what's most important to me are

  • where i am aka
    • folder
    • directory
    • "everything is files on linux[1]"
  • git information
  • time and date

I was not convinced at first because probably it's a lot of work to change what I used to do. But thanks to this post by blainsmith in the fediverse, I changed my mind.

Now my prompt uses this configuration.

autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' unstagedstr '!'
zstyle ':vcs_info:*' stagedstr '+'
zstyle ':vcs_info:git:*' formats "%F{green}(%s)%F{yellow}(%b)%F{green}(%c)%F{red}(%u)%F{blue}(%m)"
zstyle ':vcs_info:git:*' actionformats "%F{green}(%s)%F{yellow}(%b)%F{green}(%c)%F{red}(%u)%F{blue}(%m)%F{002}(%a)"
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
export PROMPT=$'\$vcs_info_msg_0_%F{010} %B%F{blue}%n%b%f in %F{black}%K{7}<%3~>%k%f %F{yellow}[%y] %F{green}@ %B%U%F{white}%M%u%b %{\x1b[3m%F{red}%T%} %F{white}%D{%b %d,%Y (%A)}
%{\x1b[0m%}%(?.%F{green} .%F{red}%? )%%%F{none} '

But keep in mind, I just skimmed through the Zsh Documentation and just look at whatever all over the internet just to change some colors and such. But it works so I guess that's also cool?

New prompt look§

Btw my old prompt uses default starship prompt so I guess everyone knows what the default looks like so no need to give a screenshot. Now, my prompt looks like this

New prompt


  1. https://en.wikipedia.org/wiki/Everything_is_a_file

Articles from blogs I follow around the net

Status update, November 2024

Hi all! This month I’ve spent a lot of time triaging Sway and wlroots issues following the Sway 1.10 release. There are a few regressions, some of which are already fixed (thanks to all contributors for sending patches!). Kenny has added support for softwa…

via emersionNovember 21, 2024

Key Transparency and the Right to be Forgotten

This post is the first in a new series covering some of the reasoning behind decisions made in my project to build end-to-end encryption for direct messages on the Fediverse. (Collectively, Fedi-E2EE.) Although the reasons for specific design decisions sho…

via Dhole MomentsNovember 21, 2024

The Ethereum MEV Bots are a scam

Several months ago, I wrote this article: The Fascinating Ethereum MEV Bot Scam, where I dived deep into the technical aspects of a scam that has been circulating for years on platforms like X.com and YouTube. These scams revolve around deploying smart…

via Christian Visintin BlogNovember 19, 2024

hyper in curl Needs a Champion

tl;dr - hyper in curl is nearly complete, but it needs a champion. Without a partner actively engaged that wants to enable and ship, it’s now on the path for being deprecated and removed. It needs a champion, a backing vendor or distro. Will that be you? …

via seanmonstarNovember 19, 2024

Swift observations from a reluctant Rustacean

Recently I've been thinking about Swift in terms of Rust, & have appreciated anew some of the choices made. In Rust. There's been a proliferation of X vs Y posts on the web, especially since the advent of LLM AI, so I try to resist the format. It's often e…

via Mike KreuzerNovember 16, 2024

Go Concurrency Patterns

Goroutines Channels Select Statement Wait Groups Mutex Conditions Atomic Operations Once Context Map Real Examples Goroutines The go keyword is used to start a goroutine. A goroutine is a lightweight, managed thread used by the Go runtime to run functions …

via Posts on integralistNovember 15, 2024

Generated by openring-rs

favicon here hometagsblogmicrobio cvtech cvgpg keys