From a1c8b5600367ba034a42417ba68748ee12629ded Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 18 Nov 2019 17:26:24 +0100 Subject: [PATCH] Exchange supercrabtree/k for exa exa is more versatile and way faster than k. I rarely used the git integration of k (which is, admittedly, better), as well as the colored variables. So exa should work well enough for my purposes, especially since I make more use of vifm when cd-ing through a lot of directories. --- .config/shell/zshrc.d/0-plugins.zsh | 5 ----- .config/shell/zshrc.d/6-alias-exa.zsh | 8 ++++++++ .config/shell/zshrc.d/6-alias-l.zsh | 4 ---- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .config/shell/zshrc.d/6-alias-exa.zsh delete mode 100644 .config/shell/zshrc.d/6-alias-l.zsh diff --git a/.config/shell/zshrc.d/0-plugins.zsh b/.config/shell/zshrc.d/0-plugins.zsh index 33135e6..fd90007 100644 --- a/.config/shell/zshrc.d/0-plugins.zsh +++ b/.config/shell/zshrc.d/0-plugins.zsh @@ -55,11 +55,6 @@ load_plugins() { # Add Fish-like autosuggestions to your ZSH. zgen load zsh-users/zsh-autosuggestions - # k is a zsh script / plugin to make directory listings more readable, - # adding a bit of color and some git status information on files and - # directories. - zgen load supercrabtree/k - # Bullet train prompt setup. zgen load bhilburn/powerlevel9k powerlevel9k diff --git a/.config/shell/zshrc.d/6-alias-exa.zsh b/.config/shell/zshrc.d/6-alias-exa.zsh new file mode 100644 index 0000000..26ea25a --- /dev/null +++ b/.config/shell/zshrc.d/6-alias-exa.zsh @@ -0,0 +1,8 @@ +#!/bin/zsh +# uses exa in detail mode +alias l="exa -l --git --git-ignore" +# shows hidden files +alias L="exa -hal --grid --git" +# a recursive tree - usually want to change levels recused with -L2 -L3 or similar +alias ll="exa --tree -L2" +alias LL="exa -a --tree -L2" diff --git a/.config/shell/zshrc.d/6-alias-l.zsh b/.config/shell/zshrc.d/6-alias-l.zsh deleted file mode 100644 index 2e66b7a..0000000 --- a/.config/shell/zshrc.d/6-alias-l.zsh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/zsh -# uses k (installed with plugins) but makes it accessible through l as well -alias k="k -h" -alias l="k -A"