(bash) update aliases for ls
This commit is contained in:
parent
35e6d27d43
commit
52a29f69fc
1 changed files with 4 additions and 8 deletions
|
|
@ -48,7 +48,6 @@ esac
|
||||||
# enable color support for ls and grep (even tho i don't use grep ???)
|
# enable color support for ls and grep (even tho i don't use grep ???)
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -57,21 +56,18 @@ export PATH=$PATH:/home/jc/.local/bin
|
||||||
# -------------- Aliases
|
# -------------- Aliases
|
||||||
alias gs="git status"
|
alias gs="git status"
|
||||||
|
|
||||||
|
alias ls='lsd'
|
||||||
|
|
||||||
# ll alias breakdown
|
# 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
|
# -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)
|
# -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
|
# la alias breakdown
|
||||||
# -A list all entries without ./ and ../
|
# -A list all entries without ./ and ../
|
||||||
alias la="lsd -A"
|
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:
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
# sleep 10; alert
|
# 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$//'\'')"'
|
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$//'\'')"'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue