Blog

zsh tip of the day

I've been getting into the zsh shell as a replacement for bash. But there are so many things to learn that I wanted a "Tip of the Day" to give me a random tip whenever starting my shell. The tips are from zsh-lovers.

So I made a tip-of-the-day script. Simply put these two files in ~/tips, then add php ~/tips/tips.php to your .zshrc file.

tips.php

tips.txt

The next time you start up your shell, you will see something like:

--------------------------------------------------------------------------------
zsh tip of the day

# Match file names containing only digits and ending with .xml (require
# *setopt kshglob*)
$ ls -l [0-9]##.xml
$ ls -l <0->.xml
--------------------------------------------------------------------------------
comments powered by Disqus

Did you know?

I'm a software engineering consultant. This means I can help your company with your software engineering needs:

  • providing temporary manpower for short-staffed software projects

  • helping new software projects get off to a good architectural start

  • improving the performance and reliability of old, legacy software systems

  • doing an important investigation or small project that you've always wanted to do but haven't had time for

Since 1999, I have done software engineering projects for the Canadian government, for Silicon Valley startups, and for established Bay Area companies, for small companies and medium-sized companies, for successful commercial projects and open-source projects. 

Currently accepting small projects. If you have one, email or call me.