summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-05-16 10:57:14 +0200
committerGravatar Tom Willemsen2011-05-16 10:57:14 +0200
commit31549fbf40e6bed44fd60e5da4a350117470a163 (patch)
tree24bdbbc3efca9ae62dd75932d7527f611e0fd7f8 /zshrc
parent47f8de52d95097968748e3552fdccf67c7f9d20a (diff)
downloaddotfiles-31549fbf40e6bed44fd60e5da4a350117470a163.tar.gz
dotfiles-31549fbf40e6bed44fd60e5da4a350117470a163.zip
ZSH: Show todolist upon entering a directory
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/zshrc b/zshrc
index 89b451e..4235413 100644
--- a/zshrc
+++ b/zshrc
@@ -66,8 +66,8 @@ alias less="less -FXRS"
# Set terminal name to current runnign application
case $TERM in
rxvt*)
- precmd () { print -Pn "\e]0;urxvt - %~\a" }
- preexec () { print -Pn "\e]0;urxvt - $1\a" }
+ precmd () { print -Pn "\e]0;%~\a" }
+ preexec () { print -Pn "\e]0;$1\a" }
;;
esac
@@ -94,9 +94,13 @@ bindkey "\e0F" end-of-line
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
+# Show syntax highlighting when we're not running in emacs
if [ -z $EMACS ]; then
source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
fi
+
+# Execute at startup
+chpwd_show_todo