File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
src/plugins/terminal/scripts Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,20 @@ if [ "$#" -eq 0 ]; then
4444 echo " $$ " > " $PREFIX /pid"
4545 chmod +x " $PREFIX /axs"
4646
47+ if [ ! -e " $PREFIX /alpine/etc/acode_motd" ]; then
48+ cat << EOF > "$PREFIX /alpine/etc/acode_motd"
49+ Welcome to Alpine Linux in Acode!
50+
51+ Working with packages:
52+
53+ - Search: apk search <query>
54+ - Install: apk add <package>
55+ - Uninstall: apk del <package>
56+ - Upgrade: apk update && apk upgrade
57+
58+ EOF
59+ fi
60+
4761 # Create initrc if it doesn't exist
4862 if [ ! -e " $PREFIX /alpine/initrc" ]; then
4963 cat << EOF > "$PREFIX /alpine/initrc"
@@ -56,13 +70,18 @@ if [[ -f /etc/bash/bashrc ]]; then
5670fi
5771
5872export PATH=\$ PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/share/bin:/usr/share/sbin:/usr/local/bin:/usr/local/sbin
59- export PS1="\[\e[38;5;46m\]\u\[\e[0m\]@localhost \[\e[0m\]\w \[\e[0m\]\\ $ "
6073export HOME=/home
6174export TERM=xterm-256color
6275export SHELL=\$ (command -v bash)
76+
77+ if [ -f /etc/acode_motd ]; then
78+ cat /etc/acode_motd
79+ fi
80+
6381EOF
6482 fi
6583
84+ echo ' export PS1="\[\e[38;5;46m\]\u\[\e[0m\]@localhost \[\e[0m\]\w \[\e[0m\]\\$ "' >> $PREFIX /alpine/initrc
6685 chmod +x " $PREFIX /alpine/initrc"
6786 " $PREFIX /axs" -c " bash --rcfile /initrc -i"
6887else
You can’t perform that action at this time.
0 commit comments