.tcshrc
prompt:if ($?prompt) then
set autoexpand
set color
set colorcat
set filec
set autolist = ambiguous
set correct = cmd
set history = 2048
set histfile = ~/.tcsh_history
set mail = (/var/mail/$USER)
set savehist = 2048
set autorehash = always
set grey = "%{\033[1;30m%}"
set red = "%{\033[1;31m%}"
set green = "%{\033[1;32m%}"
set yellow = "%{\033[1;33m%}"
set blue = "%{\033[1;34m%}"
set magenta = "%{\033[1;35m%}"
set cyan = "%{\033[1;36m%}"
set white = "%{\033[1;37m%}"
set end = "%{\033[0m%}"
if ( $tty =~ ttyv* ) then
if ( $USER == root ) then
set prompt = "\n${blue}%~ ${red}%N@%m: \n>>>${end} "
else
set prompt = "\n${red}%~ ${blue}%m: \n>>>${end} "
endif
else
if ( $USER == root ) then
set prompt = "\n${blue}%~ ${red}%N@%m: \n❱❱❱${end} "
else
set prompt = "\n${red}%~ ${blue}%m: \n❱❱❱${end} "
endif
endif
unset grey red green yellow blue magenta cyan white end
{
"segment_data": {
"hostname": {
"args": {
"only_if_ssh": true
}
},
"cwd": {
"args": {
"dir_limit_depth": 2
}
}
}
}
{
"segments": {
"left": [
{
"function": "powerline.segments.common.net.hostname",
"priority": 10
},
{
"function": "powerline.segments.common.env.user",
"priority": 30
},
{
"function": "powerline.segments.common.env.virtualenv",
"priority": 50
},
{
"function": "powerline.segments.shell.cwd",
"priority": 10
},
{
"function": "powerline.segments.shell.jobnum",
"priority": 20
}
],
"right": [
{
"function": "powerline.segments.shell.last_pipe_status",
"priority": 10
},
{
"function": "powerline.segments.common.vcs.branch",
"priority": 40
}
]
}
}
Here is my zsh shell prompt,Does anyone have any good prompts that they could share?
PROMPT='%(1j.%j.) %B%F{green}%C %f%b%# '