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

commandline

1696 readers
1 users here now

founded 1 year 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 1 year ago* (last edited 1 year 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

[–] Andy 3 points 1 year ago* (last edited 1 year ago)

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

EDIT: for single-column view, that is

[–] cd_slash_rmrf 3 points 1 year ago (1 children)

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

[–] chaoticAnimals 1 points 1 year ago