[Linux convenient command] Try inserting exa

environment

Overview

https://qiita.com/navitime_tech/items/c249269a3b47666c784b

Let's start with exa by looking at and trying to add more convenient things.

exa installation

https://github.com/ogham/exa

cargo install exa

Was written. cargo ?? Nanisore ??

When I go around

Cargo is Rust's build system and package manager

I see. ..

It's easy to think that if it's annoying to put it in, let's quit.

cargo installation

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

.
.
.

  stable installed - rustc 1.46.0 (04488afe3 2020-08-24)


Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell run source $HOME/.cargo/env

It seems that a description that automatically passes the path has been added to .bash_profile (if it is different, please write it yourself)

exa installation

cargo install exa

alias

I tried the following to get used to inputting ll etc. by hand and to use it like upward compatibility.

if [[ $(command -v exa) ]]; then
  alias ll='exa --icons -la'
  alias l1='exa -1'
  alias lt='exa -Ta --icons -I "node_modules|.git|.cache|vendor|tmp"'
  alias ltl='lt | less -r'
else
  alias ll='ls -la'
  alias l1='ls -1'
  alias lt='tree -I "node_modules|.git|.cache|vendor|tmp"'
  alias ltl='lt | less -r'
fi

Summary

It's a small difference, but I think that it will grow if we accumulate little by little improvement, so I would like to continue working on it.

image.png

Recommended Posts

[Linux convenient command] Try inserting exa
[Linux convenient command] Try inserting csview
[Linux convenient command] Try inserting bat
[Linux convenient command] Try to insert vivid
Linux command # 3
Linux command # 5
Linux command list
linux at command
[Linux] Search command
Linux command <Basic 2>
Linux [directory command]
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
[Basic] linux command
Linux [shell command]
Convenient command combination
[Linux] Command / Knowledge
My linux command
Linux command <Basic 1>
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Linux (command memory)
Try to create a new command on linux
[Linux] Volume configuration command
Linux command cheat sheet
Linux command (sequential update)
Linux basic command memorandum
Linux command [File operation]
[Linux] Basic command summary
Linux command for self-collection
linux command error collection 1
Try NeosVR on Linux
Linux command line shortcut
linux sar command CPU usage
[Linux] tar.gz compression / decompression command
Try normal Linux programming Part 7
What is Linux? [Command list]
Try normal Linux programming Part 2
Convenient diff command usage notes
Try normal Linux programming Part 3
Try normal Linux programming Part 4
Easy df command on Linux
Linux tar xz command memo
Try normal Linux programming Part 6
Linux Command Dictionary (for myself)
linux: create original Terminal command
[Note] Useful linux command collection
Linux command memorandum [for beginners]
Linux PC spec check command
[Linux] User / group command summary
Convenient Linux shortcuts (for beginners)
[C language] [Linux] Try to create a simple Linux command * Just add! !!