Mercurial > ec-dotfiles
annotate 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 |
rev | line source |
---|---|
64 | 1 #!/usr/bin/env zsh |
2 [ -f "${HOME}/.ecos_zsh.before" ] && . "${HOME}/.ecos_zsh.before" | |
68 | 3 case $TERM in |
4 xterm*|screen*) | |
5 precmd () {print -Pn "\e]0;%n@%m: %~\a"} | |
6 ;; | |
7 esac | |
64 | 8 PS1='[%n@%m %~]%% ' |
66 | 9 HISTFILE=~/.histfile |
10 HISTSIZE=10000 | |
11 SAVEHIST=10000 | |
12 setopt appendhistory nomatch | |
13 unsetopt autocd beep extendedglob notify | |
14 bindkey -e | |
15 autoload -Uz compinit | |
16 compinit | |
17 | |
64 | 18 alias ls='ls -F' |
19 [ -f "${HOME}/.ecos_zsh.after" ] && . "${HOME}/.ecos_zsh.after" |