Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 1.63 KB
if [[ $OSTYPE == darwin* ]] ; then
mac_version=`system_profiler SPSoftwareDataType | grep "System Version" | awk '{print $6}' | sed "s:.[[:digit:]]*.$::g"`
if [[ "$mac_version" == '10.7' ]] ; then
function spchar {
chars=("¡" "¿" "ॐ" "†" "※" "⁂" "⁋" "℗" "⇨" "∞" "∭" "∴" "⌛" "⌨" "⍟" "⎋" "◎" "☀" "☁" "☂" "☃" "☄" "★" "☑" "☒" "☕" "☘" "☛" "☞" "☠" "☪" "☫" "☬" "☯" "☸" "☹" "☺" "♕" "♖" "♗" "♘" "♞" "♠" "♣" "♥" "♦" "♨" "♩" "♪" "♫" "♭" "♯" "♻" "⚀" "⚁" "⚂" "⚃" "⚄" "⚅" "⚐" "⚒" "⚓" "⚔" "⚕" "⚚" "⚛" "⚠" "⚡" "✂" "✆" "✈" "✌" "✍" "✏" "✓" "✖" "✗" "✞" "✡" "✪" "✯" "✹" "❀" "❄" "❖" "➔" "➜" "➠" "➢" "➥" "➲" "➾" "" "🌋" "🌏" "🌛" "🌠" "🍍" "🍏" "🍕" "🍗" "🍫" "🎠" "🎤" "🎳" "🎴" "🎼" "👓" "💯" "💳" "🔖" "😄")
RANDOM=$$$(date +%s)
echo ${chars[$RANDOM % ${#chars[@]}]}
}
else
function spchar {
chars=("ॐ" "†" "※" "⁂" "℗" "⇨" "∞" "∭" "∴" "⌛" "⌨" "◎" "☀" "☁" "☂" "☃" "☄" "★" "☑" "☒" "☕" "☘" "☛" "☞" "☠" "☪" "☯" "☹" "☺" "♕" "♖" "♗" "♘" "♞" "♠" "♣" "♥" "♦" "♨" "♩" "♪" "♫" "♭" "♯" "♻" "⚀" "⚁" "⚂" "⚃" "⚄" "⚅" "⚐" "⚒" "⚓" "⚔" "⚛" "⚠" "⚡" "✂" "✆" "✈" "✌" "✍" "✏" "✓" "✖" "✗" "✞" "✡" "✪" "✯" "✹" "❀" "❄" "❖" "➔" "➜" "➠" "➢" "➥" "➲" "➾" "")
RANDOM=$$$(date +%s)
echo ${chars[$RANDOM % ${#chars[@]}]}
}
fi
else
function spchar {
echo "$"
}
fi
Jump to Line
Something went wrong with that request. Please try again.