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
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