From d410f51cf8282b8e6d6c781db09c8b0a83e81cc4 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 18 Jun 2019 17:25:00 +0000 Subject: [PATCH] Improve tree aliases --- dotfiles/.bashrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 7775081..3f58866 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -140,12 +140,10 @@ bashrc_customize_aliases() { alias myip="dig +short myip.opendns.com @resolver1.opendns.com" alias tree="tree -F --dirsfirst" - alias tra="tree -a" - alias trl="tree -ugsh" # like ls -l (prints owner, group, human size) - alias trla="trl -a" - alias trac="tra -C" - alias trlc="trl -C" - alias trlac="trla -C" +} + +ltree() { + tree -C -F --dirsfirst "$@" | less -R } # Send an OSC (Operating System Commmand) to the terminal.