Peaclock uses a configuration directory and a configuration file to manage settings.
Default Locations
- Config Directory (DIR):
${HOME}/.peaclock - Config File:
${HOME}/.peaclock/config - History Directory:
${HOME}/.peaclock/history - Command History File:
${HOME}/.peaclock/history/command
Setup and Overrides
To set up the default configuration, create the directory and copy the default config file:
mkdir -pv ~/.peaclock
cp -uv ./cfg/default ~/.peaclock/config
To override the defaults via CLI:
- Use
--config=<file> to specify a custom config file. - Use
--config-dir=<dir> to specify a custom config directory.
To permanently use a custom config directory (e.g., ~/.config/peaclock), add an alias to your shell profile:
alias peaclock="peaclock --config-dir ~/.config/peaclock"
Config File Format
The config file is a plain text file where each command must be on its own line. Lines starting with # are treated as comments. Commands can be found in the --help output.
# Setup default config
mkdir -pv ~/.peaclock
cp -uv ./cfg/default ~/.peaclock/config
# Permanent alias example
alias peaclock="peaclock --config-dir ~/.config/peaclock"