From f7160aa41c6421a68cda1c78b67d2de944705922 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 6 Oct 2015 21:54:18 +0300 Subject: [PATCH] .shellrc: minor refactoring Change functions to be more sh-like (less bashy). --- .shellrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.2