From 52a29f69fc8dff43103674c79af1274da308d607 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Sat, 31 May 2025 01:01:56 -0400 Subject: [PATCH] (bash) update aliases for ls --- bash/.bashrc.arch | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/bash/.bashrc.arch b/bash/.bashrc.arch index 73b194f..9f4225d 100644 --- a/bash/.bashrc.arch +++ b/bash/.bashrc.arch @@ -48,7 +48,6 @@ esac # enable color support for ls and grep (even tho i don't use grep ???) if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' alias grep='grep --color=auto' fi @@ -57,21 +56,18 @@ export PATH=$PATH:/home/jc/.local/bin # -------------- Aliases alias gs="git status" +alias ls='lsd' + # ll alias breakdown -# -a includes hidden files +# -A includes hidden files but excludes . and .. # -l displays the listing in long format, showing file attributes such as permissions # -F appends a character to each entry in the listing to indicate the file type (e.g '/' for directories and '*' for executables) -alias ll="lsd -alF" +alias ll="lsd -AlF" # la alias breakdown # -A list all entries without ./ and ../ alias la="lsd -A" -# l alias breakdown -# -C list entries by columns -# -F appends a character to each entry in the listing to indicate the file type (e.g '/' for directories and '*' for executables) -alias l="lsd -CF" - # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert alias alert='notify-send --urgency=normal -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'