# List only directories and symbolic links that point to directories
alias lsd='ll -d *(-/DN)'
-cd () { builtin cd "$@" && lrt }
+alias lscontext='print -l -- ${${(f):-"$(lrt)"}[-$((LINES/2)),-1]}'
+cd () { __CHPWD_RUN_FIRST=lscontext && builtin cd "$@" && unset __CHPWD_RUN_FIRST }
#_cd_l() { ll }
#chpwd_functions+=_cd_l
# fix until #480889 is fixed
-cd () { __CHPWD_RUN_FIRST=lrt && builtin cd "$@" && unset __CHPWD_RUN_FIRST }
+cd () { __CHPWD_RUN_FIRST=lscontext && builtin cd "$@" && unset __CHPWD_RUN_FIRST }