Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Digital Mark λ ☕️ 🕹 👽
Digital Mark λ ☕️ 🕹 👽
@mdhughes@appdot.net  ·  activity timestamp 2 days ago

Updated my seasonal prompt emoji:
#zsh #unix

# MYEMOJI
export XMAS=(
	'🎄'	'🌲'	'🌟'	'🎁'	'🔔'	'❄️'	'☃️'	'⛄'
	'🎅'	'🤶'	'🦌'	'🍪'	'🥛'
)
export SPRING=(
	'🌱'	'🌿'	'☘️'	'🍀'	'🍄'	'🌷'	'🌹'	'🥀'
	'🌺'	'🌸'	'🌼'	'🌻'	'🌈'	'🍒'	'🍎'	'🍊'
	'☕️'	'🍵'	'🥐'	'🍩'	'🍪'
)

myemoji() {
	emoi=$(( int(rand48() * $#SPRING + 1) ))
	echo -n -e "$SPRING[emoi]"
}

export PS1='%F{red} $(myemoji) %n@%m:%~%#%f '
# MYEMOJI export XMAS=( '🎄' '🌲' '🌟' '🎁' '🔔' '❄️' '☃️' '⛄' '🎅' '🤶' '🦌' '🍪' '🥛' ) export SPRING=( '🌱' '🌿' '☘️' '🍀' '🍄' '🌷' '🌹' '🥀' '🌺' '🌸' '🌼' '🌻' '🌈' '🍒' '🍎' '🍊' '☕️' '🍵' '🥐' '🍩' '🍪' ) myemoji() { emoi=$(( int(rand48() * $#SPRING + 1) )) echo -n -e "$SPRING[emoi]" } export PS1='%F{red} $(myemoji) %n@%m:%~%#%f '
# MYEMOJI export XMAS=( '🎄' '🌲' '🌟' '🎁' '🔔' '❄️' '☃️' '⛄' '🎅' '🤶' '🦌' '🍪' '🥛' ) export SPRING=( '🌱' '🌿' '☘️' '🍀' '🍄' '🌷' '🌹' '🥀' '🌺' '🌸' '🌼' '🌻' '🌈' '🍒' '🍎' '🍊' '☕️' '🍵' '🥐' '🍩' '🍪' ) myemoji() { emoi=$(( int(rand48() * $#SPRING + 1) )) echo -n -e "$SPRING[emoi]" } export PS1='%F{red} $(myemoji) %n@%m:%~%#%f '
  • Copy link
  • Flag this post
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct