Browse Source

bash: aliases: ++host

Maxim Likhachev 3 years ago
parent
commit
085358d779
  1. 8
      etc/shell/bash/aliases

8
etc/shell/bash/aliases

@ -415,6 +415,13 @@ function mount() { #noindex @@ -415,6 +415,13 @@ function mount() { #noindex
command mount "$@" | column -t
}
#- Поиск IP-адреса по имени хоста (в /etc/hosts и через DNS)
function host() {
getent hosts "$1"
command host "$1"
:
}
#- Копирование файла $1 в $SHELLRC/bin/$2
cpbin() {
cp -i "$1" "$SHELLRC/bin/$2/"
@ -527,6 +534,7 @@ tl() { t $@ | less; } #noindex @@ -527,6 +534,7 @@ tl() { t $@ | less; } #noindex
alias ?=t #noindex
alias ??=tl #noindex
#- Распознавание pdf при помощи ocrmypdf
ocr() {
languages=${2:-eng}
languages="-l ${languages//,/ -l }"

Loading…
Cancel
Save