ヘ[´Д`]ノ > 做了一个带 emoji 的 shell prompt

哈哈,抄袭一个 fish 的

function random_select
    set -l options '/ᐠ。ꞈ。ᐟ\\' '(Ꮚ・ꈊ・Ꮚ)' '(ꐦ°᷄д°᷅)' '(ノ▼Д▼)ノ' '(=^-ω-^=)' '(╯✧∇✧)╯' '(▼・ᴥ・▼)' '(▰˘◡˘▰)'

    # Count the number of options
    set -l count (count $options)

    # Generate a random number between 1 and the number of options
    set -l index (random 1 $count)

    # Output the randomly selected string
    echo $options[$index]
end
1 个赞