Commit Graph
9 Commits
Author SHA1 Message Date
Xavier LogeraisandCopilot 158c3f99f0 perf: remove unnecessary subshells in command -v checks
Replace 'if (command -v x &>/dev/null); then' with
'if command -v x &>/dev/null; then' across completion.d, rc.d and
profile.d. Parentheses forced a subshell fork for every 'if' check,
which is unnecessary overhead since command -v runs fine in the
current shell.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-28 18:17:13 +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 6a53ee36fd chore(rc,profile,aliases,completion,libs,functions): Remove shebangs from sourced files
These files are always sourced (never executed directly), so the
#!/bin/bash shebang is inert and misleading. Drop it consistently
across rc.d/*, profile.d/*, and aliases.d/*.
2026-08-22 00:52:02 +02:00
xavier 5cb8b5dfaf feat(rc): Amélioration de la gestion de tmux 2025-03-13 00:19:53 +01:00
Xavier Logerais af5d43fb36 feat(rc): Amélioration de la gestion de tmux 2025-01-17 09:05:09 +00:00
xavier 616bbba449 feat: remove unnecessary exec flag on rc.d files 2021-04-23 12:58:26 +02:00
xavier 7362c36ab8 Fix rc.d/tmux for cases where there is tmux process belongings to other users 2018-12-10 13:41:18 +01:00
xavier dff6dcabb4 Fix incompatible pgrep option for termux in rc.d/tmux 2017-01-27 10:44:59 +01:00
Xavier Logerais (Numericable - Ingénierie Système) dbd673e951 Added tmux notifications in rc.d 2015-03-24 12:26:49 +01:00