zsh updates
git-svn-id: http://photonzero.com/dotfiles/trunk@25 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
parent
29c7fd1814
commit
6cc6a51cb7
2 changed files with 46 additions and 0 deletions
32
.zsh_profile
Normal file
32
.zsh_profile
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# $FreeBSD: src/share/skel/dot.profile,v 1.19.2.2 2002/07/13 16:29:10 mp Exp $
|
||||
#
|
||||
# .profile - Bourne Shell startup script for login shells
|
||||
#
|
||||
# see also sh(1), environ(7).
|
||||
#
|
||||
|
||||
# remove /usr/games and /usr/X11R6/bin if you want
|
||||
PATH=/$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/games:/usr/X11R6/bin; export PATH
|
||||
case `uname` in
|
||||
SunOS)
|
||||
UCB_PATH=/usr/sww/lang/acl:/usr/sww/lang/jdk-1.5.0/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sww/opt/java/bin:/usr/sww/bin:/share/b/grading/bin:/share/b/grading/sbin:/share/b/runas/sun4u:/share/b/bin:/home/aa/projects/scheme/bin:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin; export UCB_PATH
|
||||
PATH=$PATH:$UCB_PATH; export PATH
|
||||
;;
|
||||
Darwin)
|
||||
MACPORTS_PATH=/opt/local/bin:/opt/local/sbin:/opt/local/usr/bin:/opt/local/usr/local/bin; export MACPORTS_PATH
|
||||
PATH=$HOME/bin:$MACPORTS_PATH:$PATH; export PATH
|
||||
export DISPLAY=:0.0
|
||||
set completion-ignore-case on
|
||||
;;
|
||||
esac
|
||||
|
||||
# Setting TERM is normally done through /etc/ttys. Do only override
|
||||
# if you're sure that you'll never log in via telnet or xterm or a
|
||||
# serial line.
|
||||
# Use cons25l1 for iso-* fonts
|
||||
# TERM=cons25; export TERM
|
||||
|
||||
BLOCKSIZE=K; export BLOCKSIZE
|
||||
EDITOR=vim; export EDITOR
|
||||
PAGER=less; export PAGER
|
||||
|
||||
14
.zshrc
14
.zshrc
|
|
@ -31,8 +31,22 @@ ZLS_COLORS=$LS_COLORS
|
|||
PR_STITLE=''
|
||||
fi
|
||||
|
||||
preexec () {
|
||||
local CMD="${1/#sudo /#}"
|
||||
local CMD="${CMD/#nano /}"
|
||||
local CMD="${CMD/#ssh />}"
|
||||
$SCREENME true || echo -ne "\ek${CMD%% *}\e\\"
|
||||
}
|
||||
precmd () {
|
||||
$SCREENME true || echo -ne "\ekzsh\e\\"
|
||||
}
|
||||
|
||||
PROMPT='$PR_STITLE$PR_LIGHT_BLUE($PR_LIGHT_YELLOW%D{%H:%M}|%!$PR_BLUE%)[%(!.$PR_RED.$PR_GREEN)%n@%m$PR_LIGHT_CYAN %~$PR_BLUE]$PR_NO_COLOUR%(!.#.$) '
|
||||
#source .zshprompt
|
||||
|
||||
source ~/.zsh_profile
|
||||
source ~/.bash_aliases
|
||||
source ~/.zshenv
|
||||
if [ -n "`which fortune`" ]; then
|
||||
fortune
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue