X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=c0477b269a65dbb6fa0c6b1fc352b89ecc646765;hb=40729e0439d8b7aff7a19418fab1293a887abe5a;hp=aeaeb7b6ce24707aed6cfccd4b42adf689b4b772;hpb=8bb730a82617bbbc60d2723c8d022b40f1456b46;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index aeaeb7b..c0477b2 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3588,29 +3588,6 @@ fi # fi #} -#f2# Print a specific line of file(s). -linenr () { - emulate -L zsh - if [ $# -lt 2 ] ; then - print "Usage: linenr [,] " ; return 1 - elif [ $# -eq 2 ] ; then - local number=$1 - local file=$2 - command ed -s $file <<< "${number}n" - else - local number=$1 - shift - for file in "$@" ; do - if [ ! -d $file ] ; then - echo "${file}:" - command ed -s $file <<< "${number}n" 2> /dev/null - else - continue - fi - done | less - fi -} - #f2# Find history events by search pattern and list them by date. whatwhen() { emulate -L zsh