changeset 72:cb20a159ab00

Merge.
author Edho Prima Arief <me@myconan.net>
date Fri, 27 May 2011 10:05:11 -0400
parents c8c3e4bc4850 (diff) 40236fd0a3a5 (current diff)
children d9aace34d144
files
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/zsh	Mon May 23 00:01:20 2011 +0700
+++ b/zsh	Fri May 27 10:05:11 2011 -0400
@@ -1,5 +1,10 @@
 #!/usr/bin/env zsh
 [ -f "${HOME}/.ecos_zsh.before" ] && . "${HOME}/.ecos_zsh.before"
+case $TERM in
+  xterm*|screen*)
+    precmd () {print -Pn "\e]0;%n@%m: %~\a"}
+  ;;
+esac
 PS1='[%n@%m %~]%% '
 HISTFILE=~/.histfile
 HISTSIZE=10000
@@ -10,5 +15,8 @@
 autoload -Uz compinit
 compinit
 
+export EDITOR=vi
+export PAGER='less -Rins'
+alias less='less -Rins'
 alias ls='ls -F'
 [ -f "${HOME}/.ecos_zsh.after" ] && . "${HOME}/.ecos_zsh.after"