From: Oleg Broytman Date: Tue, 6 Oct 2015 18:54:18 +0000 (+0300) Subject: .shellrc: minor refactoring X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f7160aa41c6421a68cda1c78b67d2de944705922;p=dotfiles.git .shellrc: minor refactoring Change functions to be more sh-like (less bashy). --- diff --git a/.shellrc b/.shellrc index e6ae420..d2e56a6 100644 --- a/.shellrc +++ b/.shellrc @@ -122,6 +122,10 @@ x() { exit; } X() { startx >> .Xserver.log 2>&1; cyr; } +git() { + LESS=FRSX"$LESS" command git "$@" +} + include() { cfg="$1" @@ -137,9 +141,6 @@ include() } -function git { - LESS=FRSX"$LESS" command git "$@" -} mc() { @@ -209,7 +210,7 @@ mc() { } -function mkcd { +mkcd() { if [ $# -ne 1 ]; then echo "Usage: mkcd directory_name" >&2 elif [ -d "$1" ]; then