- Add `checks.${system}` block to `flake.nix` executing Ruff (linting and formatting checks), Pyright (static type analysis), and ShellCheck (shell script analysis across all `.sh` scripts).
- Add `shellcheck` package to `home/dev.nix`.
- Resolve linting and formatting issues across Python and Bash scripts (`bundle_project.py`, `git.sh`, `jump.sh`, `pdf.sh`, `todo.sh`, etc.) to ensure clean check evaluations.
Rationale: Automates quality control and code health standards directly inside the Nix flake ecosystem via `nix flake check`.
20 lines
684 B
Bash
20 lines
684 B
Bash
# shellcheck shell=bash
|
|
# --- Word Deletion & Readline Keybindings ---
|
|
if [[ -n "$BASH_VERSION" ]] && [[ "$-" == *i* ]]; then
|
|
# Ctrl+W: Delete entire word under cursor (backward-word + kill-word)
|
|
bind '"\C-w": "\eb\ed"' 2>/dev/null
|
|
|
|
# Ctrl+Delete: Forward word delete (matches Alacritty \e[3;5~)
|
|
bind '"\e[3;5~": kill-word' 2>/dev/null
|
|
|
|
# Ctrl+Backspace / Alt+Backspace: Backward word delete (start to cursor)
|
|
bind '"\e\x7f": backward-kill-word' 2>/dev/null
|
|
bind '"\e\b": backward-kill-word' 2>/dev/null
|
|
fi
|
|
|
|
# --- Visual Entry ---
|
|
# Display system information dashboard upon opening interactive shells
|
|
if [[ $- == *i* ]]; then
|
|
fastfetch --logo none
|
|
fi
|