site_zshrc_60_misc (444B)
1 #!zsh 2 # vim: ft=zsh et sts=4 ts=4 sw=4 3 4 DIRSTACKSIZE=30 5 6 ### If the execution of a command takes longer than 7 ### REPORTTIME (in seconds), time statistics are printed 8 REPORTTIME=4 9 10 NULLCMD="cat" 11 12 if (($+commands[bat])); then 13 readnullcmd() { 14 local in=/proc/self/fd/0 15 if [[ -f $in:A ]]; then 16 bat $in:A 17 else 18 bat 19 fi 20 } 21 READNULLCMD=readnullcmd 22 else 23 READNULLCMD=${PAGER:-more} 24 fi