]> git.donarmstrong.com Git - zsh.git/blob - .zsh/zshrc/85_prompt
add zsh modes to everything
[zsh.git] / .zsh / zshrc / 85_prompt
1 # -*- mode: sh -*-
2 # -*- mode: sh -*-
3 # zshrc/80_prompt
4 #
5 # Formats the shell prompt
6 #
7 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
8 # Released under the terms of the Artistic Licence 2.0
9 #
10 # Source repository: git://git.madduck.net/etc/zsh.git
11 #
12
13 PS1="%{$fg[green]%}%n@%m %{$fg[green]%}%* %{$fg[yellow]%}%25<…<%~%<<%{$reset_color%}%# "
14
15 # if [ "${PS1:-}" = '%m%# ' ]; then
16 #   local _MIDDLE="%1v%(2v.|%B%2v%b|.)%(3v.%3v.)"
17 #   if is_root; then
18 #     _MIDDLE="%25<…<%~%<<"
19 #     local _PS1_HL=U
20 #   fi
21
22 #   local _MACHINE_NAME="${_PS1_HL:=B}%m%${(L)_PS1_HL}"
23 #   _MACHINE_NAME="$_MACHINE_NAME${debian_chroot:+/%S$debian_chroot%s}"
24
25 #   PS1="%(2L.+.)%${_MACHINE_NAME}:${_MIDDLE}%# "
26 # fi
27
28 # : ${RPS1:="#%(0?..%?,)%!"}
29
30 # vim:ft=zsh