From a665006836e13913553d34f1e71ad8cedd2678d6 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Wed, 27 Mar 2024 14:13:36 +0100 Subject: [PATCH] :bug: color for `ls` alias --- .bash/.bash_aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash/.bash_aliases b/.bash/.bash_aliases index 594f8b4..70c02f8 100644 --- a/.bash/.bash_aliases +++ b/.bash/.bash_aliases @@ -2,9 +2,10 @@ [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" alias gitdotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"' # enable color support of ls and also add handy aliases +alias ls='ls -pQFh --group-directories-first' if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' + alias ls='ls --color=auto -pQFh --group-directories-first' alias dir='dir --color=auto' alias vdir='vdir --color=auto' @@ -42,7 +43,6 @@ history_most_used(){ LC_ALL=C cat ~/.bash_history | cut -d ';' -f 2- | §awk 1 | ls ~/bin | grep -P "^§" | sed 's/^§/~\/bin\/ §/' } -alias ls='ls -pQFh --group-directories-first' alias §less='less -R -S' alias §cd.='clear;§ls'