From 847c2ec629ffcaf736c5c84362668b8625161619 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 9 Jun 2021 18:28:58 +0200 Subject: bashrc: convert ls aliases to functions This allows them to be used as parameters to other functions. --- bash/bashrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index 18364ac..0d90635 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -26,17 +26,18 @@ fi alias grep='grep --color=auto' alias egrep='egrep --color=auto' -alias ll='ls -l' -alias la='ls -A' -alias lh='ls -lh' -alias lla='ls -lA' -alias llh='ls -lAh' -alias lt='ls -lt' # disable flow control # XXX should this be here? stty -ixon +ll() { ls -l "$@"; } +lt() { ls -lt "$@"; } +la() { ls -A "$@"; } +lh() { ls -lh "$@"; } +lla() { ls -lA "$@"; } +llh() { ls -lAh "$@"; } + cu() { local lvl=$1 -- cgit v1.2.3