-
-
Save tobijibu/3c502ad19233efe8303eba2187f2cf85 to your computer and use it in GitHub Desktop.
This file contains 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
PROMPT=$'[%{$fg[yellow]%}%*%{$reset_color%}]:%{$fg[green]%}%~%{$reset_color%} | |
`command_status_check $?`:$ ' | |
RPROMPT=$'%~' | |
function command_status_check { | |
local color kao suffix | |
suffix='%{'${reset_color}'%}' | |
if [ $1 = 0 ] | |
then | |
color='%{'${fg[cyan]}'%}' | |
kao="(*'-')" | |
else | |
color='%{'${fg[magenta]}'%}' | |
kao="(*-~-)" | |
fi | |
echo ${color}${kao}${suffix} | |
} | |
function command_not_found_handler { | |
echo "${fg[blue]}(*'-\`)$reset_color ${fg[red]}$0$reset_color なんて知らないよ〜" | |
return 127 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment