9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntu 20 に Rust 製の便利そうなコマンドラインツールをインストールする

Last updated at Posted at 2021-02-11

Ubuntu 20 に Rust 製の便利そうなコマンドラインツールをインストールします。

使用するには cargo をインストールします。

sudo apt install -y cargo ;
echo export PATH='$HOME/.cargo/bin:$PATH' >> ~/.bashrc ; # 環境変数の追加
source ~/.bashrc ; # 環境変数の有効化

コピペでインストールしたい方

cargo install bat ;
cargo install ripgrep ;
cargo install fd-find ;
cargo install starship ;
cargo install exa ;
cargo install nushell ;
cargo install navi ;
cargo install git-delta ;
cargo install hyperfine ;
cargo install xsv ;
cargo install py-spy ;
cargo install bandwhich ;
cargo install hexyl ;
cargo install lsd ;
cargo install broot ;
cargo install gping ;
cargo install tokei ;
cargo install genact ;
cargo install monolith ;
cargo install shellharden ;
cargo install ripgrep-all ;
cargo install fnm ;
cargo install pastel ;
cargo install gitui ;
cargo install volta ;
cargo install onefetch ;
cargo install dog ;
cargo install skim ;
cargo install watchexec ;
cargo install dust ;
cargo install zoxide ;
cargo install ytop ;
cargo install mcfly ;
cargo install sd ;
cargo install fselect ;
cargo install topgrade ;
cargo install pueue ;
cargo install procs ;
cargo install bottom ;
cargo install grex ;
cargo install silicon ;
cargo install bingrep ;
cargo install tealdeer ;
cargo install nat ;
cargo install angle-grinder ;
cargo install ht ;
cargo install diskonaut ;
cargo install drill ;
cargo install git-interactive-rebase-tool ;
cargo install dua-cli ;
cargo install desed ;
cargo install zenith ;
cargo install oha ;
cargo install choose ;
cargo install dutree ;
cargo install globe-cli ;
cargo install tmux-thumbs ;
cargo install csview ;
cargo install glitchcat ;

シェルでインストールしたい方

install.sh
#!/usr/bin/bash

# bash install.sh ;

# =============================================================================
# app list
# =============================================================================

HOGE=$(cat << EOS
bat
ripgrep
fd-find
starship
exa
nu
navi
git-delta
hyperfine
xsv
py-spy
bandwhich
hexyl
lsd
broot
gping
tokei
genact
monolith
shellharden
ripgrep-all
fnm
pastel
gitui
volta
onefetch
dog
skim
watchexec
dust
zoxide
ytop
mcfly
sd
fselect
topgrade
pueue
procs
bottom
grex
silicon
bingrep
tealdeer
nat
angle-grinder
ht
diskonaut
drill
git-interactive-rebase-tool
dua-cli
desed
zenith
oha
choose
dutree
globe-cli
tmux-thumbs
csview
glitchcat
EOS
)

list=(`echo $HOGE`)

echo "install apps num => ${#list[@]}" ;

# =============================================================================
# install apps 
# =============================================================================

for app in "${list[@]}" ; do

    echo "========= cargo install ${app} =========";
    cargo install $app ;

done

# =============================================================================
# show app version
# =============================================================================

for app in "${list[@]}" ; do

    echo "----- installed ${app} version check ----";
    $app --version ;

done

※バージョンの表示でエラーが出ます。一部、インストールするアプリ名と実行名が違うためです。
###各アプリの説明はこちら

Linuxメモ : あると便利かもしれないRust製コマンドラインツール - もた日記
https://wonderwall.hatenablog.com/entry/rust-command-line-tools

9
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?