From 10e8bac8960e9e09b4040e1a994b0489e68d073e Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sun, 26 Oct 2014 18:09:50 +0600 Subject: [PATCH] =?UTF-8?q?bash:=20=D1=80=D0=B5=D0=BE=D1=80=D0=B3=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B8=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B8=D0=B5=20=D0=B8=D0=B7?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=81=D0=B5?= =?UTF-8?q?=D0=B2=D0=B4=D0=BE=D0=BD=D0=B8=D0=BC=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/shell/bash/aliases | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index 6cc7a80..71cdaed 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -58,7 +58,7 @@ alias z="nh zathura" #noindex alias sendemail="sendemail -l $LOGDIR/sendemail" #noindex alias g=git #noindex alias startx="xinit -- /usr/bin/X" #noindex -alias lftp="LFTP_HOME=$SHELLRC/etc/net/lftp lftp" +alias lftp="LFTP_HOME=$SHELLRC/etc/net/lftp lftp" #noindex alias fm="PAGER=autoex fm" #noindex @@ -74,7 +74,7 @@ fi ################################################################################ #- Подсветка текущего дня в календаре -function cal() { +function cal() { #noindex [ -z "$1" ] && command cal -m | clr "$(\date +%_d)" || command cal -m $* } @@ -84,17 +84,17 @@ nh() { } #- Правка псевдонимов в Vim -alias ealias="$EDITOR $ALIASES" #noindex +alias ealias="$EDITOR $ALIASES" #noindex #- Перезагрузка конфигов баша -alias reload=". ~/.bashrc" +alias reload=". ~/.bashrc" #noindex #- Выход из сеанса -alias :q="exit" +alias :q="exit" #noindex #- ls с цифровым видом прав alias lls="ls -l | sed 's/--x/1/g; s/-w-/2/g; s/-wx/3/g; s/r--/4/g; s/r-x/5/g; s/rw-/6/g; s/rwx/7/g; s/---/0/g'" #- История bash -h() { [ -z "$1" ] && history || history | grep "$1"; } +h() { [ -z "$1" ] && history || history | grep "$1"; } #noindex #Переназначение функции, вызываемой неизвестной командой command_not_found_handle() { #noindex @@ -120,7 +120,7 @@ function date() { #noindex } #- Список функций и псевдонимов -:h() { +:h() { #noindex printf "$white -----------------------[ Функции и псевдонимы ]-----------------------$rstc\n" for file in ${HELPSRC[@]}; { @@ -186,7 +186,7 @@ githubdl() { ################################################################################ #- Vim -alias :e="vim" +alias :e="vim" #noindex #- Переход с поиском выше по дереву директорий up() {