.sh

Multi-shell dotfiles manager
git clone https://git.torresjrjr.com/.sh.git
Log | Files | Refs | README | LICENSE

commit 40cd5a948a5321d0d84fc48253a89a99234eb534
parent 2111f2973159cc7775e2d78ae35748c7204a770c
Author: Byron Torres <b@torresjrjr.com>
Date:   Wed,  2 Mar 2022 00:40:58 +0000

New ls aliases, variable width info() ls

Diffstat:
Msh/.init.sh | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sh/.init.sh b/sh/.init.sh @@ -19,9 +19,11 @@ set -o vi # bulitins alias c='clear' alias rs='clear; . $DOTSHELL/sh/.init.sh' # overridden -alias ls='ls -w 80 --color=auto --group-directories-first' -alias la='ls -FAXC' -alias ll='ls -FAXlh' +alias l='ls --group-directories-first --color=auto' +alias lc='l -w 80 ' +alias la='lc -FAXC' +alias ll='l -FAXlh' +alias lt='ll -t' # externals alias tree='tree -C --dirsfirst' @@ -40,7 +42,7 @@ alias gitll='git log --oneline --decorate --graph --all' info() { $FETCH - ls -FAX ; echo + [ "$COLUMNS" -lt 80 ] && l || la ; echo git log -0 2>&- && { # if git repo git log -1 --abbrev-commit --format=short --color --decorate \ | sed -n '1p; /^ /p'