| | 39 | |
| | 40 | After we shell in container |
| | 41 | {{{ |
| | 42 | apk update |
| | 43 | apk add --no-cache python3 |
| | 44 | apk add --no-cache inetutils-telnet |
| | 45 | root@MK53:~# cat .ashrc |
| | 46 | |
| | 47 | alias ls='ls --color=auto' |
| | 48 | alias grep='grep --color=auto' |
| | 49 | |
| | 50 | |
| | 51 | # ANSI Color Codes (e.g., 31=Red, 32=Green, 34=Blue) |
| | 52 | # Reset color is 0 |
| | 53 | export PS1_RED='\e[31m' |
| | 54 | export PS1_GREEN='\e[32m' |
| | 55 | export PS1_BLUE='\e[34m' |
| | 56 | export PS1_YELLOW='\e[33m' |
| | 57 | export PS1_RESET='\e[0m' |
| | 58 | |
| | 59 | # Example: [user@host] /path $ |
| | 60 | # \u = username, \h = hostname, \w = working dir |
| | 61 | # \n = newline, \$ = # or $ |
| | 62 | PS1='%{${PS1_GREEN}%}[\u@\h]%{${PS1_RESET}%}:%{${PS1_BLUE}%}\w%{${PS1_RESET}}% \$ ' |
| | 63 | |
| | 64 | #PS1='\[\e[31m\]\u@\h\[\e[0m\]:\[\e[32m\]\w\[\e[0m\]\$ ' |
| | 65 | }}} |