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

commandline

1687 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
[–] [email protected] 2 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

[–] [email protected] 1 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

[–] [email protected] 0 points 1 year ago

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