Skip to content

Instantly share code, notes, and snippets.

View hitotito's full-sized avatar
🐧

Tosh Okonogi hitotito

🐧
View GitHub Profile
@liquidgecka
liquidgecka / cron_helper.sh
Last active September 28, 2023 15:35
Cron helper
#!/bin/bash
usage() {
cat << EOF
Usage: $0 [OPTION]... COMMAND
Execute the given command in a way that works safely with cron. This should
typically be used inside of a cron job definition like so:
* * * * * $(which "$0") [OPTION]... COMMAND
Arguments:

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: