Please bear with us as we work to restore functionality to dotfiles.org.
Khaoz
/.zsh/prompt
Simply set the Zsh prompt. I use most of the other Zsh dotfiles from Gigamo (git://github.com/gigamo/config.git).
#!/bin/zsh
case $TERM in
*xterm*|rxvt|rxvt-unicode|rxvt-256color|(dt|k|E)term)
precmd () { print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~]\a" }
preexec () { print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~] ($1)\a" }
;;
screen)
precmd () {
print -Pn "\e]83;title \"$1\"\a"
print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~]\a"
}
preexec () {
print -Pn "\e]83;title \"$1\"\a"
print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~] ($1)\a"
}
;;
esac
setprompt () {
# load some modules
autoload -U colors zsh/terminfo # Used in the colour alias below
colors
setopt prompt_subst
PROMPT="%{$fg[blue]%}[%{$fg_bold[white]%}%~%{$fg[blue]%}]%{$fg_bold[green]%} $ %{$reset_color%} "
}
setprompt