From 864047a6e8e6d9f832057c51776795e2dc8874cf Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 16 Aug 2018 14:08:30 +1000 Subject: [PATCH] Simplify LS_COLORS installation using hooks --- config/zsh/zplugin | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config/zsh/zplugin b/config/zsh/zplugin index df8e982..5600403 100644 --- a/config/zsh/zplugin +++ b/config/zsh/zplugin @@ -17,13 +17,7 @@ zplugin $load mafredri/zsh-async zplugin $load rupa/z zplugin $load sindresorhus/pure -zplugin $load trapd00r/LS_COLORS -LS_COLORS_DIR=$ZPLGM[PLUGINS_DIR]/trapd00r---LS_COLORS -if [[ ! $LS_COLORS_DIR/LS_COLORS.plugin.zsh -nt $LS_COLORS_DIR/LS_COLORS ]]; then - dircolors -b $LS_COLORS_DIR/LS_COLORS > $LS_COLORS_DIR/LS_COLORS.plugin.zsh - zplugin compile trapd00r/LS_COLORS - source $LS_COLORS_DIR/LS_COLORS.plugin.zsh -fi +zplugin ice atclone'dircolors -b LS_COLORS > c.zsh' atpull'%atclone' pick'c.zsh'; zplugin $load trapd00r/LS_COLORS zplugin ice blockf; zplugin $load zsh-users/zsh-completions