Browse Source

bash: type с подсветкой синтаксиса

master
Maxim Likhachev 9 years ago
parent
commit
36f4a6179b
  1. 13
      etc/shell/bash/aliases

13
etc/shell/bash/aliases

@ -253,12 +253,23 @@ alias tt=ctorrent #noindex @@ -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 '{

Loading…
Cancel
Save