Commit graph dotfiles/.bash_completion
Author SHA1 Message Date
7804080953
Add configuration for GNOME 2026-10-06 13:36:42 +02:00
7cf5654a4b
Fix fzf's ssh host completion under failglob in bash
fzf's completion.bash globs ~/.ssh/config.d/* when listing hosts
=> With `shopt -s failglob`, a missing or empty folder makes this
   an expansion error, printing "bash: no match" on every <Tab>
   after `ssh`

Define __fzf_list_hosts before sourcing fzf, using its override
hook with bash-completion's host list, as fzf itself suggests
2026-10-06 13:36:41 +02:00
764b9df417
Fix infinite loop in bash alias completion
fzf's completion.bash was sourced in ~/.bashrc after complete_alias
had already masked all aliases in ~/.bash_completion
=> fzf wrapped _complete_alias for commands like `ls`,
   so unmasking failed and each <Tab> recursed into itself,
   printing "cannot unmask alias command: ls" repeatedly

Source fzf's completion.bash in ~/.bash_completion right before
complete_alias, so that complete_alias saves fzf's wrappers
as the vanilla completions
2026-10-06 13:08:42 +02:00
1ffce9ed20
Add utility to generate shell completions 2026-09-29 13:10:18 +02:00
7d2ed96021
Set up complete-alias for bash
See: https://github.com/cykerway/complete-alias
2026-09-29 13:09:37 +02:00
0e0c4c2e62
Add configuration for bash
- Add ~/.bashrc
  + Configure on how the `history` works
  + Enable nicer `cd` and globbing behavior
  + Enable tab completion, even for aliases
  + Add some more stuff from Debian's ~/.bashrc
- Add ~/.bash_logout clearing the screen
- Add stubs for ~/.bash_login and ~/.bash_profile
  that redirect to ~/.profile
- Add ~/.bash_completion
- Ensure ~/.local/state/bash/ exists
2026-09-22 11:59:45 +02:00