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
# based on the original 'clean' theme | |
# works best together with https://github.com/zsh-users/zsh-syntax-highlighting | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="white"; fi | |
PROMPT=' | |
%0(?.%{$fg[white]%}.%{$fg[red]%})Process finished with exit code %?.%{$reset_color%} | |
------------------------------------------------------------------------------- | |
[%*] %{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}%{$fg[white]%}@%M%{$reset_color%} %{$fg[blue]%}%B%c%b%{$reset_color%} $(git_prompt_info) | |
%(!.#.$) ' |
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
<?php | |
function parse ($cmd) | |
{ | |
$out = array(); | |
$escape = ''; | |
$buffer = ''; | |
$last = ''; | |
$i = 0; | |
while (empty($char = mb_substr($cmd, $i++, 1)) === false) |