From: Oleg Broytman Date: Tue, 2 Jul 2024 22:56:17 +0000 (+0300) Subject: .shellrc: Make some simple functions aliases X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a54b2378119cf778678adf6c7dd7852a25b456a7;p=dotfiles.git .shellrc: Make some simple functions aliases --- 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