Skip to main content

Rust tools

Rust tools​

cat -> bat​

https://github.com/sharkdp/bat

A cat(1) clone with wings.

Π§ΠΈΡ‚Π°Π΅ΠΌ Ρ„Π°ΠΉΠ», смотрим git diff

img

ΠŸΠ΅Ρ‡Π°Ρ‚Π°Π΅ΠΌ манифСст pod-Π° ΠΈΠ· etcd; подсвСчиваСм синтаксис

img

du -> dust​

https://github.com/bootandy/dust

A more intuitive version of du in rust

Π‘ΠΌΠΎΡ‚Ρ€ΠΈΠΌ disk usage выставляя Π³Π»ΡƒΠ±ΠΈΠ½Ρƒ ΠΈ ΠΈΡΠΊΠ»ΡŽΡ‡Π°Ρ Π½Π΅ΠΆΠ΅Π»Π°Ρ‚Π΅Π»ΡŒΠ½Ρ‹Π΅ Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΠΈ

img

Π‘ΠΌΠΎΡ‚Ρ€ΠΈΠΌ сколько мСста ΡΡŠΠ΅Π΄Π°ΡŽΡ‚ Ρ„Π°ΠΉΠ»Ρ‹ Ρ‚ΠΎΠ³ΠΎ ΠΈΠ»ΠΈ ΠΈΠ½ΠΎΠ³ΠΎ Ρ„ΠΎΡ€ΠΌΠ°Ρ‚Π°

img

find -> fd​

https://github.com/sharkdp/fd

A simple, fast and user-friendly alternative to 'find'

img

ls -> exa​

https://github.com/ogham/exa

A modern replacement for β€˜ls’.

grep -> ripgrep​

https://github.com/BurntSushi/ripgrep

ripgrep recursively searches directories for a regex pattern while respecting your gitignore

ΠŸΠΎΠΈΡ‰Π΅ΠΌ Π² ΠΊΠ°ΠΊΠΈΡ… Ρ„Π°ΠΉΠ»Π°Ρ… ΠΎΡΡ‚Π°Π»ΠΈΡΡŒ TODO-шки

img

Hacks​

alias cat=bat
alias du=dust
alias find=fd
alias ls=exa
alias grep=rg

fd . -X bat # open all files inside the current dirctory via bat
k get po -n kube-system aws-node-4dvzk -o yaml | bat --language=yaml # print k8s object manifest with syntax highlights

... to be continued