Skip to content

Instantly share code, notes, and snippets.

@paul
Created November 10, 2008 19:05
Show Gist options
  • Save paul/23585 to your computer and use it in GitHub Desktop.
Save paul/23585 to your computer and use it in GitHub Desktop.
local blue_op="%{$fg[blue]%}[%{$reset_color%}"
local blue_cp="%{$fg[blue]%}]%{$reset_color%}"
local path_p="${blue_op}%~${blue_cp}"
local user_host="${blue_op}%n@%m${blue_cp}"
local ret_status="${blue_op}%?${blue_cp}"
local hist_no="${blue_op}%h${blue_cp}"
PROMPT="${path_p}${user_host}
%# "
local cur_cmd="${blue_op}%_${blue_cp}"
PROMPT2="${cur_cmd}> "
EXAMPLE:
[~][paul@singletrack]
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment