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:
9
b.sh
9
b.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user