Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 474 Bytes
# mkaz PS1 bash prompt
# vim: syntax=sh ts=4 sw=4 sts=4 sr et
source ~/dotfiles/extras/colors
function set_prompt {
local __time="\[$Cyan\]\@"
if [ -n "$SSH_CLIENT" ]; then
__host="\[$Red\] [`hostname`]"
else
__host=''
fi
local __dir="\[$Yellow\]\w"
local __git="\[$Green\]\$(__git_ps1)"
local __prompt="\[$Red\]>"
local __off="\[$Color_Off\]"
export PS1="$__time$__host$__git $__dir\n$__prompt $__off"
}
set_prompt
You can’t perform that action at this time.