refactor: bashrc is always sourced after tool install automatically

- Added source_bashrc funciton in shell_confi.sh
- Removed bashrc source commands from installer scripts
- Updated skill instructions
This commit is contained in:
2026-06-25 09:53:03 +05:30
parent 53e98c7542
commit 7fe9ac913b
9 changed files with 40 additions and 11 deletions

9
b.sh
View File

@@ -66,6 +66,15 @@ b() {
# Execute the routes file
bash "$routes_file" "$@"
local ret=$?
# Sourced again in the parent shell after successfully running the command
if [ $ret -eq 0 ]; then
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
return $ret
}
# Autocompletion for the b command in Bash