Mercurial > ec-dotfiles
comparison zsh @ 68:d6e52e074962
Allow change title in zsh
author | Edho Prima Arief <me@myconan.net> |
---|---|
date | Sat, 21 May 2011 23:55:33 -0400 |
parents | 21e3f6ea5d59 |
children | c8c3e4bc4850 |
comparison
equal
deleted
inserted
replaced
67:4510c8a9d8ec | 68:d6e52e074962 |
---|---|
1 #!/usr/bin/env zsh | 1 #!/usr/bin/env zsh |
2 [ -f "${HOME}/.ecos_zsh.before" ] && . "${HOME}/.ecos_zsh.before" | 2 [ -f "${HOME}/.ecos_zsh.before" ] && . "${HOME}/.ecos_zsh.before" |
3 case $TERM in | |
4 xterm*|screen*) | |
5 precmd () {print -Pn "\e]0;%n@%m: %~\a"} | |
6 ;; | |
7 esac | |
3 PS1='[%n@%m %~]%% ' | 8 PS1='[%n@%m %~]%% ' |
4 HISTFILE=~/.histfile | 9 HISTFILE=~/.histfile |
5 HISTSIZE=10000 | 10 HISTSIZE=10000 |
6 SAVEHIST=10000 | 11 SAVEHIST=10000 |
7 setopt appendhistory nomatch | 12 setopt appendhistory nomatch |