Linux Advent Calendar: "24 Outstanding ZSH Gems" 46
First time submitter Manko10 writes "After the Advent series last year, there is again a Linux Advent calender. The topic of this year's Advent series is '24 Outstanding ZSH Gems'. Every day from December 1st until December 24th an article will be published each covering a special feature of the Z Shell you might not have known yet."
Not a ZSH gem, but... (Score:5, Funny)
Not a ZSH gem, but this is probably the last word in BASH prompts.
PS1='C:$(echo ${PWD//\//\\\} | tr "[:lower:]" "[:upper:]" |
sed -e"s/\\([^\\]\\{6\\}\\)[^\\]\\{2,\\}/\\1~1/g" ) >'
you'd be wise not to trust random code, but if you look carefully it uses only echo, tr and sed, none of which have programmable IO and only piping, so it is safe.
Re:Not a ZSH gem, but... (Score:5, Funny)
You are evil.