feat(lsd): use lsd instead of exa

This commit is contained in:
Michel 2023-04-19 16:17:03 +02:00
parent 0aa0b98f17
commit 1fc67dce83
3 changed files with 46 additions and 14 deletions

33
.config/lsd/config.yaml Normal file
View File

@ -0,0 +1,33 @@
blocks:
# - permission
# - user
# - group
# - context
- size
- date
# - inode
# - links
- name
color:
when: auto
theme: default
# Possible values: date, relative, '+<date_format>'
# `date_format` will be a `strftime` formatted value.
date: '+%F %T'
hyperlink: auto
# ignore-globs:
# - .git
indicators: false
recursion:
enabled: false
depth: 2
total-size: true
symlink-arrow: =>

13
.zimrc
View File

@ -17,25 +17,12 @@ zmodule run-help
### Productivity ### Productivity
# Utility aliases and functions. Adds colour to ls, grep and less.
zmodule utility
# Sets up asdf, with auto install and optimized usage of the direnv plugin # Sets up asdf, with auto install and optimized usage of the direnv plugin
# https://github.com/zimfw/asdf # https://github.com/zimfw/asdf
# #
# Run `zimfw clean-dumpfile; compinit` to force loading the completion # Run `zimfw clean-dumpfile; compinit` to force loading the completion
zmodule asdf zmodule asdf
# ls directories first (applies to all aliases below)
# ll with long format and git status (applies to all aliases below)
# l all files
# lr recursively as a tree
# lx sorted by extension
# lk sorted by largest file size last
# lt sorted by newest modification time last
# lc sorted by newest status change (ctime) last
zmodule exa
# fzf # fzf
# → Using a modified version (in .zshrc) # → Using a modified version (in .zshrc)

14
.zshrc
View File

@ -164,13 +164,25 @@ source ${ZIM_HOME}/init.zsh
# See also the Completion section below # See also the Completion section below
alias cp='cp --interactive' alias cp='cp --interactive'
alias ls='exa --icons --no-permissions --no-user'
alias mv='mv --interactive' alias mv='mv --interactive'
alias rm='rm -I' alias rm='rm -I'
autoload -U zmv autoload -U zmv
alias mmv='noglob zmv -W' alias mmv='noglob zmv -W'
# https://github.com/lsd-rs/lsd
alias ls='lsd'
alias l='lsd -l'
alias lt='lsd -ltr'
alias lx='lsd -l --blocks=permission,user,group,context,size,date,name'
alias ll='l -A'
alias llt='lt -A'
alias llx='lx -A'
alias tree='lsd --long --tree --depth=2 --no-symlink'
# Dev # Dev
# #
alias make='colormake-short' alias make='colormake-short'