Shell
up:: Programming ⚐
Dotfiles
- Evan’s dotfiles: https://github.com/evantravers/dotfiles
- Intro to dotfiles
- Step by step setup - FreeCodeCamp
- Overview on setting up and maintaining
- Nice overview on what .zshrc can look like
Dates
- 🔖 Date and Time in Bash
YYYY-MM-DD:
date +'%d-%m-%Y'
Commands
- Stop a process with
Cmd + c
File navigation
Copy to clipboard
Misc
Control + c
: Exit out of running program- To debug programs ShellCheck is amazing.
shellcheck yourscript.sh
File editing
Variables
Regex
Calling functions
Crontab
🔖 Crontab.guru - The cron schedule expression editor 🔖 How to Fix Cron Permission Issues in MacOS Catalina & Mojave
Transclude of Create-a-symbolic-link
Passing arguments to a script
$1
: First variable passed$#
: Number of variables passed$@
: all variables passed