From 30f9fd6271bd132a7e28a4bcf0cf91bd8b8d0366 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 26 Feb 2023 06:32:26 +0000 Subject: [PATCH] doc(lsd): update alias section --- lsd/README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/lsd/README.md b/lsd/README.md index 4a9b817..973845f 100644 --- a/lsd/README.md +++ b/lsd/README.md @@ -48,7 +48,20 @@ lsd ### How to alias as `ls`, `ll`, `la`, etc -Update your `.bashrc`, `.zshrc`, or `.profile` +This will affect the interactive shell, but not scripts. + +Using [aliasman](/aliasman): + +```sh +aliasman ls "lsd -F" +aliasman la "lsd -AF" +aliasman ll "lsd -lAF" +aliasman lg "lsd -F --group-dirs=first" +``` + +(and follow the on-screen instructions or restart your shell) + +Or manually update your `.bashrc`, `.zshrc`, or `.profile` ```sh alias ls="lsd -F" @@ -66,7 +79,14 @@ the alias: ### How to alias as `tree` -Update your `.bashrc`, `.zshrc`, or `.profile` +Using [aliasman](/aliasman): + +```sh +aliasman tree "lsd -AF --tree" +alias tree="lsd -AF --tree" +``` + +Or manually update your `.bashrc`, `.zshrc`, or `.profile` ```sh alias tree="lsd -AF --tree"