favicon here hometagsblog

I probably need less information

#workflow #life

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

"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 linux1"
  • 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

Articles from blogs I follow around the net

Perma-Vuln: D-Link DIR-859, CVE-2024-0769

Recently Sift caught an interesting payload. As it turns out, the exploit was CVE-2024-0769, which is now tagged here: D-Link DIR-859 Information Disclosure Attempt . This vulnerability is a path traversal leading to information disclosure. But, perhaps mo…

via GreyNoise LabsJune 25, 2024

Synergy Greg

Synergy Greg would like to see you in His office, it is the one down the hall, past the cubicles and dreary faces, uplifted only when He deigns to venture forth. You will know Him when you see Him, He is the one composed, of a thousand writhing forms,…

via LudicityJune 22, 2024

Status update, June 2024

Hi all! This status update will be shorter than usual because I had a lot less free time for my open-source projects than usual this month. Indeed, I recently joined SNCF Réseau (the company responsible for the French railway infrastructure) to work on OSR…

via emersionJune 18, 2024

Why People are Angry over Go 1.23 Iterators

NOTE: This is based on, but completely rewritten, from a Twitter post: https://x.com/TheGingerBill/status/1802645945642799423 TL;DR It makes Go feel too “functional” rather than being an unabashed imperative language. I recently saw a post on Twitter showi…

via Articles on gingerBillJune 17, 2024

My RSS feed has been upgraded ✨

I did some integration work to include posts written for other publications in my RSS feed. Apologies if you see some duplicated items! 📪

via Rob O'LearyJune 15, 2024

Programming at the edge with Fastly Compute

So you’ve heard about computing at the edge, and you’ve heard that Fastly let’s you run JavaScript, Go, Rust and any other language that compiles to Wasm at the edge… well, let’s take a look and while we’re at it let’s try and understand how caching works …

via Posts on integralistJune 12, 2024

Generated by openring-rs