this post was submitted on 15 Jun 2023
20 points (100.0% liked)

commandline

1785 readers
1 users here now

founded 2 years ago
MODERATORS
 

Any extra tips or tricks are welcome!

Yesterday I learned that set -x enables trace for a bash, sh, or zsh script and prints the trace to the terminal.

you are viewing a single comment's thread
view the rest of the comments
[–] chaoticAnimals 4 points 2 years ago* (last edited 2 years ago) (2 children)

I'm a pretty big fan of icdiff. This utility allows you to compare two files to see what has been added or removed by using colorful fonts to highlight values.

https://github.com/jeffkaufman/icdiff

[–] cd_slash_rmrf 3 points 2 years ago (1 children)

I recently learned about diffsitter which uses tree-sitter for meaningful diffs

[–] chaoticAnimals 1 points 2 years ago
[–] Andy 3 points 2 years ago* (last edited 2 years ago)

Another good one is riff (riffdiff on crates.io).

EDIT: for single-column view, that is