@aelaraji@aelaraji.com Oh, that’s great! I haven’t heard about any of them before either. There’s also a caveat though, that I ran right into the very first time I tried this in zsh:
$ ls > /dev/null
$ echo $_
--color=tty
Yeah, exactly what you think:
$ which ls
ls: aliased to ls --color=tty
Alt+.
is going to be my favorite one! In the above, it would also give me /dev/null
, which might be probably more what I would expect.
Just discovered how easy it is to recall my last arg in shell and my brain went 🤯 How come I’ve never learned about this before!? I wonder how many other QOL shortcuts I’m missing on 🥲
Ha, I just learned that deleting text in my zsh with Ctrl+U
to the front or Ctrl+K
to the end puts it in a buffer that can be pasted by pressing Ctrl+Y
! That’s neat. Even removing the last word with Ctrl+W
moves it into this paste buffer.
https://jvns.ca/blog/2024/11/26/terminal-rules/#rule-5-vaguely-support-readline-keybindings
I guess I have to implement pasting in tt
as well.
@prologic@twtxt.net, do you use zsh
on macOS, or do you change it to, say, bash
?
Been trying to get acquainted with rsync(1)
but, whenever I Tab
for completion and get this:
λ ~/ rsync –
zsh: do you wish to see all 484 possibilities (162 lines)?
I’m like: Nope! a scp -rpCq ...
or whatever option salad will do just fine. 😅 [Insert: “Ain’t nobody got time fo’that!” Meme.]
@mdosch@mdosch.de Oh wow. I thought Apple was the only org out there shipping zsh by default. What was their rationale for not defaulting to bash?
@adiabetic@www.frogorbits.com I like #ZSH (I’m using it with the #grml config).
Unexpectedly amusing: my 24-line .zsh_history. (chsh is near the end.)
@freemor@freemor.homelinux.net @adiabetic@www.frogorbits.com I’m really not into MacOS so I had no idea what Catalina might be. But I like the zsh. 😃
@mdosch@mdosch.de Apple refuses to ship GPLv3 software. bash has security bugs that Apple doesn’t want to backport. So they’ve switched default shells again, this time to zsh. (bash and the previous default, tcsh, still ship with the OS.)
Just installed Catalina (my recommendation: don’t.). zsh is a fine shell…for downloading and installing other shells.
Zsh Native Scripting Handbook http://zdharma.org/Zsh-100-Commits-Club/Zsh-Native-Scripting-Handbook.html
@kas@enotty.dk Switching shells is the reason that I started deploying scripts in /usr/local/bin rather than defining aliases. :D Tested #bash #ksh #fish and #zsh and the latter it is now for years already.
@kas@enotty.dk thx, very interesting. But I’ll stick with #ZSH as I am in group 1: https://www.oilshell.org/blog/2018/01/28.html#toc_2
@durcheinandr@durcheinandr.de Did you upload your zsh-completion for twtxt somewhere?
@durcheinandr@durcheinandr.de Did you upload your zsh-completion for twtxt somewhere?
@xena@xena.greedo.xeserv.us True, but the syntax it uses is so different from what I’m used to on bash/zsh
@xena@xena.greedo.xeserv.us Meh. I prefer Zsh. :P