X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/51885a3214a596af6885398cd54a35d4d3721320..e45b0db3d66ca9e041622db3d801d026fb4d3724:/.zsh/zlogin/90_db?ds=sidebyside diff --git a/.zsh/zlogin/90_db b/.zsh/zlogin/90_db index aeaeea0..ba32ce5 100644 --- a/.zsh/zlogin/90_db +++ b/.zsh/zlogin/90_db @@ -5,19 +5,21 @@ # Copyright © 1994–2013 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: git://git.madduck.net/etc/zsh.git +# Source repository: http://git.madduck.net/v/etc/zsh.git # -cnt=0 -db -md1 | while read line; do - [ -n "$line" ] || continue - if [ $cnt -eq 0 ]; then - cnt=$((cnt+1)) - echo "*** $line" - else - echo "$line" - fi -done -[ $cnt -gt 0 ] && echo +if whence db >/dev/null; then + cnt=0 + db -md1 | while read line; do + [ -n "$line" ] || continue + if [ $cnt -eq 0 ]; then + cnt=$((cnt+1)) + echo "*** $line" + else + echo "$line" + fi + done + [ $cnt -gt 0 ] && echo +fi # vim:ft=zsh