mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

639
comptes actifs

#zsh

3 messages2 participants0 message aujourd’hui
A répondu dans un fil de discussion

@tripplehelix

You said that last time I posted a #fish script.

lol, oops! Let me not besmirch anyone's choice of #shell! I love 'em all.

Been thinking of giving #zsh a try, just to see if it has any killer features over #bash (like floating point, please?), or possibly nicer syntax (this kind stuff makes me want to cry: echo "${HOME/\/home\//}".

A répondu dans un fil de discussion

@whynothugo @musicmatze I've used #zsh for years before switching to fish, but all the stuff I needed to import to make it good ended up taking an intolerable amount of startup time.

And subshells do work no problem:

╭─yann@yann-desktop-nixos ~
╰─➤ (set -x;echo bla)
+zsh:7> echo bla
bla
╭─yann@yann-desktop-nixos ~
╰─➤ diff -u <(echo bla) <(echo blubb)
--- /proc/self/fd/11 2025-05-08 10:12:08.340338786 +0200
+++ /proc/self/fd/12 2025-05-08 10:12:08.340338786 +0200
@@ -1 +1 @@
-bla
+blubb

Can we please have one standard way to define shell completions, that is compatible with all shells?

I'm moving from zsh to nushell, and it's relatively new, and you have to configure completions by writing a lot of code, including a lot of files, it's a nightmare.

It's easier for older shells like zsh or fish only because other people already done it, and some packages include per-shell completions.

There is @carapace_sh which attempts to do the right thing, but having completions in the other place than actual app is not very good idea.

usage.jdx.dev/ is trying to do the same but differently, and it has a way for an app to provide a schema for completions. This is step in the right direction, but not many tools support this.

Has anyone tried to put this somehow on the shell level? E.q. app includes a file like `myapp.completions` , and shell have a module which reads the file and generates a list of completions based on user input.

The right way to do this, is probably by defining a standard cross-platform/cross-shell schema. And it can be read by the shell, or by the tool like carapace or usage...

usage.jdx.devUsageSchema for CLIs
#Linux#zsh#bash

I was using #zsh for the last many years, and I have configured EVERYTHING the way I like.

- Auto-completions
- Per-directory history
- #McFly for Ctrl-R quick search
- Aliases

Now I'm moving to #nushell and I want to configure everything in the same way. But, per-directory history is either broken or non-existent: github.com/nushell/nushell/dis

People do not use per-directory history? This is AWESOME, every time you switch directory you have your entire relevant history at your fingertips. I recommend everyone to try it.

zsh has per-directory-history plugin (i was using oh-my-zsh)
#atuin has even better search, you can filter by workspace/directory/session/...

Atuin has solved missing/broken per-directory history partially, but god I want this to be default in all shells.

GitHubHow to get per-directory history by "Up Arrow" · nushell nushell · Discussion #15670How do I limit history available by "up arrow" key, to only include items from current directory? I'm using sqlite history, so in theory this should be possible. In my previous life with zsh, there...
A répondu dans un fil de discussion

As you see here I already have configured the minimal amount of users that I need in my K Desktop Environment

The next phase will take a bit of time because I need to fine tune critical small keyboard shortcuts so that they work as transparently as they do in xFace with muscle memory

.🖋️ #bash #MX #mxLinux #sh #zsh #ksh #csh #tksh #fish  #distro #gPartEd #xFace #KDE  #Gnome #Linux #POSIX  #fresh #programming  #hugo #gvfs  #backgrounds #wallpaper #Vallpaper #gufw

A répondu dans un fil de discussion

Im starting to achieve platform distro OS translucency regarding more and more projects. Now I can smoothly work in my hugo projects from any distro I want in Linux. All I need to do is keep the copies I work on in sync.
Since I dont run zfs jet on a centralized HDD / SSD I simply use mc -a to do the job manually.
Normally it should be trivial, but the hugo projects want rm -Rf dir otherwise old files with similar size can be changed, thus screwing up continuity

Since my KDE MX install is smoothing out in cfg features I need, which is a combo of XFce components and KDE, I can smoothly switch to the KDE distro and work further while I tune it.

I chose to keep XFce seperate from KDE distro wise due to size constraints I;ve put on my boot partition

.🖋️ #bash #MX #mxLinux #sh #zsh #ksh #csh #tksh #fish #distro #gPartEd #xFace #KDE #Gnome #Linux #POSIX #fresh #programming #hugo #gvfs #backgrounds #wallpaper #Vallpaper #gufw