Some basic zsh stuff.

Setting up Aliasses

CLI Tools

Zsh Color

Grepping History

history | grep echo

https://linuxhint.com/search-in-my-zsh-history/

Simple Cron (type) job

export VISUAL=nano or export EDITOR=nano for noob-mode, and don’t forget to chmod +x your files.

Example: 43 * * * * ~/scripts/notes.sh >/tmp/stdout.log 2>/tmp/stderr.log

Preferred Shebang Line?

User preferred shell: #!/usr/bin/env bash

Source: https://scriptingosx.com/2017/10/on-the-shebang/

zsh vs. bash differences

Q: is zsh a superset of bash?

A: not a strict superset, be aware of:

  • Arrays (zsh arrays start at 1, not at 0)
  • Wildcard expansion

Extra info:

Themes

Videos