From 36f4a6179b2cb9405080be8862704d1fc4e2e19b Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Wed, 20 Jan 2016 15:12:39 +0500 Subject: [PATCH] =?UTF-8?q?bash:=20type=20=D1=81=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D1=81=D0=B2=D0=B5=D1=82=D0=BA=D0=BE=D0=B9=20=D1=81=D0=B8=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=D0=BA=D1=81=D0=B8=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/shell/bash/aliases | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index 1db6ca5..bc5749f 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -253,12 +253,23 @@ alias tt=ctorrent #noindex #- Переименовывание torrent-файла ttr() { - echo mv -i -v \"$1\" \"$(dumptorrent -b "$1" \ + echo mv -i -v \"$1\" \"tt_$(dumptorrent -b "$1" \ | cut -d ':' -f 2 \ | sed 's/^ *//').torrent\" \ | sh } +#- type с подсветкой синтаксиса +function type() { #noindex + command type "$1" | source-highlight \ + --src-lang=sh \ + -f esc \ + -o STDOUT \ + --line-number=' ' \ + --style-file=$SHELLRC/etc/soft/source-hl/default.style + echo +} + #- Вывод размера файлов в отсортированном виде dus() { \du -smc "$@" | sort -gr | awk '{