From a54b2378119cf778678adf6c7dd7852a25b456a7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Jul 2024 01:56:17 +0300 Subject: [PATCH] .shellrc: Make some simple functions aliases --- .shellrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.shellrc b/.shellrc index 9f9242a..6194d4b 100644 --- a/.shellrc +++ b/.shellrc @@ -41,11 +41,11 @@ esac if test -n "$KSH_VERSION" -o -n "$FCEDIT"; then back() { cd - "$@"; } - j() { jobs; } + alias j=jobs fi # clear screen and history, logout -chlo() { clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit; } +alias clhlo='clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit' if [ -n "$STY" -a "$WINDOW" != 0 ]; then #unset MAILCHECK everywhere except for the 1st GNU screen window @@ -209,4 +209,4 @@ if [ "$SHLVL" -eq 1 ] && which startx >/dev/null 2>&1; then X() { startx >> .Xserver.log 2>&1; cyr; /bin/rm -f .Xauthority; } fi -x() { exit; } +alias x=exit -- 2.39.5