Commit Graph
17 Commits
Author SHA1 Message Date
xavier 34e2e7193c fix: Try to fix completion 2026-08-23 16:17:05 +02:00
xavier a92c1c340f fix(bashrc): Stop manually re-sourcing system bash completion
The removed loop tried to source /etc/bash*completion and
/etc/profile.d/bash*completion* by hand, with two real problems:
nullglob wasn't enabled for it (unlike everywhere else via
_source_dir_files), so an empty match sourced the literal glob
pattern and errored — the TODO already flagged this. It also
re-sourced /etc/profile.d/bash_completion.sh, a script meant for
/etc/profile on login shells, not for being re-run from an
interactive-only ~/.bashrc.

On a properly packaged system, bash-completion wires itself up
already (confirmed here via /etc/profile.d/bash_completion.sh and
progcomp being on by default) — this loop was dead weight at best and
a source of environment-dependent breakage at worst (seen previously
on Termux, where /etc doesn't have the same layout).
2026-08-22 02:03:17 +02:00
xavier df189f9ec1 style: Normalize variable expansions to ${var} across the repo
Replace bare $var with ${var} everywhere it was still used, matching
the convention already established in rc.d/prompt and rc.d/history.
Positional parameters ($1, $@, $#) and special variables ($?, $$, $-)
are left as-is, consistent with existing usage in _helpers.bash.

rc.d/broot is auto-generated by the broot binary and will likely be
overwritten with its original formatting on the next broot update.
2026-08-22 00:55:39 +02:00
xavier e40045aa99 feat: Improve way to determine and set the path containing the bash config
Before this:
The bash config repo needed to be cloned in ~/.bash/ to work properly

After this:
The bash config repo can be move anywhere (for exemple in
~/.config/bash).
The create-links.bash helper is adapted to this new behaviour.
So you can clone anywhere and call create-links.bash from anywhere. Then
the symbolic links in your home should be good and the config would load
correctly.
2026-07-13 12:44:45 +02:00
Xavier Logerais 8d98936961 feat: Add fzf-git as 3rd party module 2025-11-21 19:42:04 +00:00
xavier 1a003a9d72 feat(bashrc): Add management for functions 2025-09-28 17:55:51 +02:00
xavier 2b51dfd554 feat(bashrc): remove z.sh third party library
Better use zoxide (See https://github.com/ajeetdsouza/zoxide).
(It is available with mise. Just `mise use -g zoxide`.)
2025-09-28 17:52:54 +02:00
Xavier Logerais 611bab8f2f feat: Add 3rd party libs 2025-03-13 00:20:24 +01:00
Xavier Logerais c53e964ce9 feat: Améliore la gestion pour sourcer le contenu des sous-répertoires (*.d) 2025-03-13 00:20:24 +01:00
Xavier Logerais ce15f00b6f feat: Ajout automatique de la compltetion pour les aliases si _complete_alias est disponible 2024-06-28 08:32:11 +00:00
Xavier Logerais cb323ec6c0 feat: Utilise nullglob pour éviter les erreurs de répertoires vides 2024-06-28 08:31:10 +00:00
Xavier Logerais f651195b22 fix: Correction activation ble.sh 2024-06-21 16:48:06 +00:00
Xavier Logerais aa9835f8bd feat: shellcheck 2024-06-19 09:19:05 +00:00
xavier d6cd5be515 Modified bashrc to fix bash completion on Ubuntu 2018-08-30 10:19:55 +02:00
xavier 84fb3829b9 Add support for gentoo completion 2014-04-09 18:17:59 +02:00
Xavier Logerais (Numericable - Ingénierie Système) 919df7d554 Created dir rc.d and moved/splited stuff from bashrc to rc.d/* 2013-12-05 13:38:25 +01:00
xavier 9fad99b12f Add bash configuration files 2013-04-24 16:58:31 +02:00