- Remove headless server configuration, homelab services, and legacy host directories (`hosts/server/`, `hosts/laptop/`). - Consolidate privileged system files into a clean `system/` directory (`core.nix`, `hardware.nix`, `desktop.nix`). - Migrate Home Manager configuration into functional domain modules under `home/` (`desktop.nix`, `dev.nix`, `shell.nix`). - Update `flake.nix` to expose a single `laptop` target. - Overhaul documentation (`architecture.md`, `AGENTS.md`, `README.md`) to reflect the standalone architecture and homelab decoupling. This refactor eliminates the multi-host maintenance tax by decoupling server infrastructure into the Core repository and simplifying workstation management around domain-driven cohesion.
19 lines
660 B
Bash
19 lines
660 B
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
|