mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
26 lines
557 B
Bash
Executable File
26 lines
557 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# @description Create file containing key mappings for wezterm
|
|
# Usage: ./create-wezterm-keymaps.sh
|
|
#
|
|
# shellcheck source=shared.sh
|
|
source "${DOTFILES}/config/shared.sh"
|
|
DEST="$HOME/.dotfiles/docs/wezterm-keybindings.md"
|
|
|
|
main()
|
|
{
|
|
msg "Generating wezterm keybindings documentation"
|
|
|
|
{
|
|
printf "# wezterm keybindings\n\n"
|
|
printf "\`\`\`txt\n"
|
|
} > "$DEST"
|
|
|
|
wezterm show-keys >> "$DEST"
|
|
|
|
printf "\`\`\`\n\n- Generated on %s\n" "$(date)" >> "$DEST"
|
|
|
|
msg "wezterm keybindings documentation generated at $DEST"
|
|
}
|
|
|
|
main "$@"
|