fixed some weired output in preload
This commit is contained in:
parent
873434819b
commit
6891475ce8
1 changed files with 14 additions and 3 deletions
17
.bashrc
17
.bashrc
|
@ -49,9 +49,20 @@ if $blesh; then
|
|||
fi
|
||||
|
||||
if $blesh; then
|
||||
[[ $- == *i* ]] && { source /usr/share/blesh/ble.sh --noattach || source "$HOME/.local/share/blesh/ble.sh" --noattach; }
|
||||
# Enable history expansion (!!, !$, etc.) in ble.sh
|
||||
bleopt history_expand_on_space=1
|
||||
if [[ $- == *i* ]]; then
|
||||
ble=(
|
||||
"/usr/share/blesh/ble.sh"
|
||||
"$HOME/.local/share/blesh/ble.sh"
|
||||
)
|
||||
|
||||
for b in "${ble[@]}"; do
|
||||
if [[ -e "$b" ]]; then
|
||||
source "$b" --noattach
|
||||
break &&
|
||||
printf "${BLUE}${BOLD}Sourced ble.sh at ${GREEN}$b${NC}\n"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
# Display stored messages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue