Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions src/plugins/terminal/scripts/init-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,6 @@ _shorten_path() {

PROMPT_COMMAND='_PS1_PATH=$(_shorten_path); _PS1_EXIT=$?'

# Source user configs AFTER defaults (so user can override PROMPT_COMMAND)
if [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi

if [ -f /etc/bash/bashrc ]; then
source /etc/bash/bashrc
fi


# Display MOTD if available
if [ -s /etc/acode_motd ]; then
cat /etc/acode_motd
Expand Down Expand Up @@ -338,6 +328,15 @@ command_not_found_handle() {
# Replicate behaviour of termux (non standard)
alias clear='reset'

# Source user configs AFTER defaults (so user can override everything)
if [ -f /etc/bash/bashrc ]; then
source /etc/bash/bashrc
fi

if [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi

EOF
fi

Expand Down