From 1fc67dce831bbfdb91df70c9d0e81f954aa15634 Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 19 Apr 2023 16:17:03 +0200 Subject: [PATCH] feat(lsd): use lsd instead of exa --- .config/lsd/config.yaml | 33 +++++++++++++++++++++++++++++++++ .zimrc | 13 ------------- .zshrc | 14 +++++++++++++- 3 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 .config/lsd/config.yaml diff --git a/.config/lsd/config.yaml b/.config/lsd/config.yaml new file mode 100644 index 0000000..47fdc1b --- /dev/null +++ b/.config/lsd/config.yaml @@ -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` 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: => diff --git a/.zimrc b/.zimrc index 29f6f1a..8bfcc73 100644 --- a/.zimrc +++ b/.zimrc @@ -17,25 +17,12 @@ zmodule run-help ### 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 # https://github.com/zimfw/asdf # # Run `zimfw clean-dumpfile; compinit` to force loading the completion 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 # → Using a modified version (in .zshrc) diff --git a/.zshrc b/.zshrc index ad1fa43..9d83dff 100644 --- a/.zshrc +++ b/.zshrc @@ -164,13 +164,25 @@ source ${ZIM_HOME}/init.zsh # See also the Completion section below alias cp='cp --interactive' -alias ls='exa --icons --no-permissions --no-user' alias mv='mv --interactive' alias rm='rm -I' autoload -U zmv 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 # alias make='colormake-short'