This works in all POSIX compliant Operating Systems
This works in all POSIX compliant Operating Systems
I rewrote this post specifically from this server to get it properly formatted in markdown
Thank you for this wonderful tip
So it's
:match Conceal /^.*$/
:set conceallevel=3
:highlight Conceal NONE
When you're finished, just do
:match
Insert Last Argument of Previous Command in #Bash, #Fish, #Zsh
https://ostechnix.com/insert-last-command-argument-bash-fish-zsh/
here's some more stupid #zsh tricks
A small shell function to enable and disable the CPU Turbo in Intel CPUs that use intel_pstate on #Linux https://gist.github.com/brunomiguel/23fdfc167fb2e3444010dafea3566639
I only tested it on #ZSH, and I'm using it on my .zshrc.
I wrote down some notes on moving from #Zsh to #Fish https://batsov.com/articles/2025/05/20/switching-from-zsh-to-fish/ I hope some of you will find them useful!
$ last | lolcat
I Love the colourful output of lolcat
On FreeBSD, which interactive shell do you primarily use for your non-root user?
If "other", perhaps leave a comment about which shell it is.
$ dmesg|less
$ last|less
$ uptime
$ id|lolcat
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\//}"
.
@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
En passant mon ordinateur secondaire à #NixOS je me suis mis à tester des logiciels alternatifs :
- #zenbrowser au lieu de #librewolf
- #fish au lieu de #zsh
- #starship au lieu de #spaceship
- #fastfetch au lieu de #neofetch
Et ces changements sont également très agréables !
Now playing Black Sabbath - Sabotage
LP 96kHz Analog version
Black Sabbath
#NowPlaying #Music #Metal #BlackSabbath #Retro #LegacyMusic #LP #Hz96000 #bash #csh #zsh #Links
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.
https://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...
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: https://github.com/nushell/nushell/discussions/15670
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.
@itsfoss #alacritty with #zsh
This is a post about my setup (spanish) https://col.social/@cosmoscalibur/114422417444168368
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
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