feat(bash): shell/prompt modernization — 8 focused improvements - #155
Merged
Merged
Conversation
Copilot created this pull request from a session on behalf of
bdossantos
July 29, 2026 19:40
View session
bdossantos
marked this pull request as ready for review
July 29, 2026 19:40
Contributor
There was a problem hiding this comment.
🟡 Not ready to approve
The updated merged alias can break when origin/HEAD is unset, and the new completions logic runs expensive generators on every shell startup without guards.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
This PR modernizes the Bash prompt/shell experience in this dotfiles repo with a set of small, focused ergonomics improvements across environment defaults, Readline UI, shell options, aliases, and tab completions.
Changes:
- Improves interactive shell behavior via new Bash
shoptoptions and enhanced Readline completion visuals. - Updates environment defaults (history behavior, MANPAGER using
batwhen available, and a corrected fzf comment). - Refines git/grep/kubectl aliases and adds CLI completions for
gh,kubectl(k), andterraform.
File summaries
| File | Description |
|---|---|
.profile |
Updates history control, adds bat-based MANPAGER fallback logic, and fixes an fzf comment. |
.inputrc |
Adds Readline visual completion settings. |
.config/bash/options.bash |
Enables additional interactive Bash shell options (globstar, checkwinsize, autocd, dirspell, histverify). |
.config/bash/completions.bash |
Adds gh, kubectl (k), and terraform completions. |
.aliases |
Modernizes merged, replaces deprecated egrep/fgrep, and moves k completion wiring out of aliases. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 3
- Review effort level: Low
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eight targeted quality-of-life improvements to the bash/shell setup. Each change is its own commit for clean cherry-picking.
Shell options (
options.bash)globstar—**recursive globbingcheckwinsize— keeps$LINES/$COLUMNSaccurate after resizeautocd— navigate by typing a path directlydirspell— spell-correction for directory tab-completionhistverify— shows!!expansion in readline buffer before executingReadline (
.inputrc)Added visual completion improvements:
colored-stats,colored-completion-prefix,mark-symlinked-directories,visible-stats,menu-complete-display-prefix,page-completions offAliases (
.aliases)merged: replaced hardcodedmasterwith dynamic default branch viagit symbolic-refegrep/fgrep: replaced deprecated binaries withgrep -E/grep -Fkalias: removed ad-hoccomplete -F __start_kubectl k— now lives incompletions.bashEnvironment (
.profile)HISTCONTROL: addederasedupsto remove older duplicate entries on flushMANPAGER: usesbat -l man -pwhen available for syntax-highlighted man pages; falls back toless -Xaginstead ofrgCompletions (
completions.bash)Added proper completions for
gh(coversgh copilot),kubectl(withkalias binding), andterraform: