Command that truncates and ellipses strings in a human-friendly way.
$ echo very long sentence |ellipse -n 12
very long se…
Installation instructions are provided for ArchLinux only. When using a different operation system, adoption to their package manager is left as an exercise to the reader.
This example uses yay, but you can use your favourite AUR helper instead.
yay -S ellipseFirst, install rust/cargo:
sudo pacman -S rustThen, install with cargo:
cargo install ellipse-binThis will only work if you have cargo's binary install directory added to your $PATH
variable.