diff --git a/dotfiles/.zsh/aliases.zsh b/dotfiles/.zsh/aliases.zsh index 43c87643..9f16dea4 100644 --- a/dotfiles/.zsh/aliases.zsh +++ b/dotfiles/.zsh/aliases.zsh @@ -37,11 +37,12 @@ alias c="clear" alias cf="tput reset" # Make ls a lot easier to read (print directories first, just like ranger) -alias ls="ls -hN --color=auto --group-directories-first" +alias exa="exa --group-directories-first" +alias ls="exa" -alias l="ls -1" # Show each output from ls on a separate line -alias lsa="ls -A" # Show hidden files (also known as dotfiles) -alias type="type -a" # Easily see what the command you want to run points to +alias l="exa -1" # Show each output from ls on a separate line +alias lsa="exa -a" # Show hidden files (also known as dotfiles) +alias type="type -a" # Easily see what the command you want to run points to #################################################################### # Volume aliases @@ -77,6 +78,9 @@ alias dog="pygmentize -g" # Easily show all of the todos in a given project alias todo="ag TODO" +# Use exa as a drop-in replacement for "tree" (faster, more colors, etc.) +alias tree="exa --long --tree" + #################################################################### # Git aliases #################################################################### diff --git a/install/packages.sh b/install/packages.sh index 82750802..c5c23a5f 100644 --- a/install/packages.sh +++ b/install/packages.sh @@ -26,7 +26,6 @@ i zsh-syntax-highlighting # Install syntax highlighting for colorful shell com i vim # Install vim, our text editor of choice i git # Install git, our version control system of choice -i tree # Install tree, used to show the contents of entire directories i wget # Install wget, used for downloading files from websites i httpie # Install httpie, used to manipulate HTTP requests i diff-so-fancy # Install diff-so-fancy, a nicer git diff @@ -60,6 +59,7 @@ i ctags # Install ctags, used with vim to create tags for formal languag i shards # Install shards, a package manager for crystal i npm # Install npm, a package manager for node.js i llvm # Install llvm, used to make the crystal binary +i exa # Install exa, a drop-in replacement for ls (and tree) i the_silver_searcher # Install ag, used to easily search through files i fdupes # Install fdupes, used to quickly find duplicate files