To use these scripts:
- clone this repository to somewhere like
~
- set environment variable
SCRIPTSPATH
- zsh:
echo 'export SCRIPTSPATH=$HOME/scripts' >> .zshrc
- fish:
echo 'set -gx SCRIPTSPATH $HOME/scripts' >> ~/.config/fish/config.fish
- zsh:
- add the directory to
$PATH
- zsh:
echo 'export PATH=$PATH:$SCRIPTSPATH' >> .zshrc
- fish:
echo 'set PATH $PATH $SCRIPTSPATH' >> ~/.config/fish/config.fish
- zsh:
- diary.sh: generate diary template for the current day
- onthisday.sh: list all the diaries on this day
- If some scripts couldn't be executed, run
chmod +x <script>
to grant execution permission.
.sh
suffixes are preserved to avoid naming conflicts.