Skip to content

Instantly share code, notes, and snippets.

View h8d13's full-sized avatar
🐦
Cygn3 L3g0 😶‍🌫️

HADEON h8d13

🐦
Cygn3 L3g0 😶‍🌫️
  • Brussels, Belgium
  • 19:31 (UTC +02:00)
View GitHub Profile
@h8d13
h8d13 / gist:18cfe3fb7b9517e4186607f7b8b067cb
Last active March 28, 2025 14:10
.profile for Alpine
# ~/.profile: executed by Bourne-compatible login shells
# Prompt that better adapts to terminal size changes
if [ $(id -u) -eq 0 ]; then
# Root user prompt with dynamic adjustment
export PS1='\033[0;31m┌──[\033[01;31mroot\033[01;33m@\033[01;96m\h\033[0;31m]─[\033[0;32m\w\033[0;31m]\n\033[0;31m└──╼ \033[01;33m# \033[0m'
else
# Regular user prompt with dynamic adjustment
export PS1='\033[0;31m┌──[\033[0;39m\u\033[01;33m@\033[01;96m\h\033[0;31m]─[\033[0;32m\w\033[0;31m]\n\033[0;31m└──╼ \033[01;33m$ \033[0m'
fi