Created
August 29, 2019 18:14
-
-
Save taviso/c987a7245335cf1ad1e2b565e77668d4 to your computer and use it in GitHub Desktop.
UNIX signals as emoji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -ar _status=( | |
[ 0]=๐ # Success | |
[ 1]=๐คจ # Error | |
[129]=๐ # SIGHUP | |
[130]=๐ # SIGINT | |
[131]="(โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป" # SIGQUIT | |
[132]=๐ฎ # SIGILL | |
[133]=๐ # SIGTRAP | |
[134]=๐ฅ # SIGABRT | |
[135]=๐ # SIGBUS | |
[136]=๐งฎ # SIGFPE | |
[137]=๐ซ # SIGKILL | |
[138]=๐ฅ # SIGUSR1 | |
[139]=๐ฃ # SIGSEGV | |
[140]=๐ฅ # SIGUSR2 | |
[141]=๐ฟ # SIGPIPE | |
[142]=โฐ # SIGALRM | |
[143]=๐ # SIGTERM | |
[147]=๐ค # SIGSTOP | |
[148]=๐ด # SIGTSTP | |
) | |
PS1='[${_status[$?]:-๐คท}:\u@\h \W]\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For ZSH: