]> arthur.barton.de Git - ax-zsh.git/commitdiff
lsd: Don't use long options in the ls(1) alias
authorAlexander Barton <alex@barton.de>
Sat, 14 May 2022 11:25:32 +0000 (13:25 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 14 May 2022 11:25:32 +0000 (13:25 +0200)
Both the "--date" and "--group-dirs" options are "nice", and I'd like to
set them here, but it looks like long options break the file name
completion logic: when a long option is present, you can't tab-complete
any file or folder name any more, which is _really_ annoying!

So remove those options again (for now)!?

If you wan't to use long options, like the ones removed now here, you
can use a configuration file in ~/.config/lsd/config.yaml, for example.

plugins/lsd/lsd.zshrc

index c98bb91a26913b89ebff4308d8f673022291de53..1bdfe6ac14cf07d91ea5783c829e04ec72a96064 100644 (file)
@@ -4,4 +4,4 @@
 # Make sure that "lsd(1)" is installed
 (( $+commands[lsd] )) || return 1
 
-alias ls='lsd --date relative --group-dirs first'
+alias ls='lsd'