ZSH: Show todolist upon entering a directory
This commit is contained in:
parent
47f8de52d9
commit
31549fbf40
2 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
||||||
# -*- mode: Shell-script -*-
|
# -*- mode: Shell-script -*-
|
||||||
|
|
||||||
if [ -e ".todo" ]; then
|
if [ -e ".toudou" ]; then
|
||||||
todo
|
toudou
|
||||||
|
elif [ "$PWD" = "$HOME" ]; then
|
||||||
|
toudou -g
|
||||||
fi
|
fi
|
||||||
|
|
8
zshrc
8
zshrc
|
@ -66,8 +66,8 @@ alias less="less -FXRS"
|
||||||
# Set terminal name to current runnign application
|
# Set terminal name to current runnign application
|
||||||
case $TERM in
|
case $TERM in
|
||||||
rxvt*)
|
rxvt*)
|
||||||
precmd () { print -Pn "\e]0;urxvt - %~\a" }
|
precmd () { print -Pn "\e]0;%~\a" }
|
||||||
preexec () { print -Pn "\e]0;urxvt - $1\a" }
|
preexec () { print -Pn "\e]0;$1\a" }
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -94,9 +94,13 @@ bindkey "\e0F" end-of-line
|
||||||
bindkey "\e[H" beginning-of-line
|
bindkey "\e[H" beginning-of-line
|
||||||
bindkey "\e[F" end-of-line
|
bindkey "\e[F" end-of-line
|
||||||
|
|
||||||
|
# Show syntax highlighting when we're not running in emacs
|
||||||
if [ -z $EMACS ]; then
|
if [ -z $EMACS ]; then
|
||||||
source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
|
source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
|
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
|
||||||
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
|
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Execute at startup
|
||||||
|
chpwd_show_todo
|
||||||
|
|
Loading…
Reference in a new issue