X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshrc;h=8726dbc143a8318af08c44c948e1a080d7ab396c;hb=2b851312434213e81b0ecb5d0478d07fd4b045e8;hp=64098503436622dce2878261d2d171267324feb4;hpb=8c93e85d2261599ea73acd5655b2bc84ad42f4e0;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 6409850..8726dbc 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3589,29 +3589,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