News for hackers. Stuff that matters.
Re:Zsh Tricks to Blow Your Mind by mhitza on Thursday February 18, 2021 @03:57AM (#26177537)
Honestly you probably can do these with bash as well with some tweaking. But on a daily basis these are most used by me

    auto_pushd
Replaces internally cd with pushd (plus a few more: to ignore dups, be silent about it).

Global aliases (interpolated anywhere in the commandline)

    alias -g G='| grep -i'
    cat file G something

Replace on the fly long directory names with short paths

    /some/long/path $ export X=`pwd`
    ~X $ 
All the tweaks to ignore dups in the history, when saving/searching.
Re:Zsh Tricks to Blow Your Mind by cb321 on Thursday February 18, 2021 @12:48PM (#26183040)
Short form loops are also great. Someone mentioned short for loops already, but I don't think anyone has mentioned these beauties:

    repeat 10 echo hi
    while {sleep 1} echo hi