Mercurial > ec-dotfiles
diff rc/zshrc @ 332:db66d53e10ea
Canonical name for configs.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 19 Mar 2012 12:52:12 +0700 |
parents | rc/zsh@a7484f2c9616 |
children | 77c1f9e624a3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rc/zshrc Mon Mar 19 12:52:12 2012 +0700 @@ -0,0 +1,26 @@ +#!/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 %~]%% ' +export PATH="${HOME}/.ecos_bin:${PATH}" +HISTFILE=~/.histfile +HISTSIZE=10000 +SAVEHIST=10000 +setopt appendhistory nomatch +unsetopt autocd beep extendedglob notify +bindkey -e +bindkey '^[[A' history-search-backward +bindkey '^[[B' history-search-forward + +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"