mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-08 00:50:44 +00:00
Add return 0 as the last statement in ~46 shell functions across 17 files that previously relied on implicit return codes (SonarCloud rule shelldre:S7682).
27 lines
568 B
Bash
Executable File
27 lines
568 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"
|
|
return 0
|
|
}
|
|
|
|
main "$@"
|