Shell Tips and Tricks
Hi readers, it’s been a long time since my last blog. I’m not used to blogging regularly, but anyways, I’m trying to keep up. So today I’ll share some shell tips and tricks that I discoverd/read/picked-up-from-the-internet/learned-from-my-friends so that you can make your life easier too.
—
https://ev1lm0rty.com/posts/shell-tips-and-tricks/
Category: Links
jless is a command-line JSON vie
jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
jless is a command-line JSON viewer. Use it as a replacement for whatever combination of less, jq, cat and your editor you currently use for viewing JSON files. It is written in Rust and can be installed as a single standalone binary. jless currently supports macOS and Linux.
—
https://github.com/PaulJuliusMartinez/jless
mdi cli search
mdi cli search
mdi cli search I use several tools using https://materialdesignicons.com. I love these icons, but the search is super slow, so i build this tool using fzf, jq and kitty to search and preview icons in the terminal.
—
https://github.com/schorsch3000/mdi-cli-search
3 shell scripts to improve your
3 shell scripts to improve your writing, or “My Ph.D. advisor rewrote himself in bash.”
The hardest part of advising Ph.D. students is teaching them how to write. Fortunately, I’ve seen patterns emerge over the past couple years.
—
https://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
Read XKCD in the terminal with s
Read XKCD in the terminal with some bash magic
XKCD is probably the most popular webcomic with Devs. It only seems right that you can read it from the comfort of your terminal via a xkcd command. How can we pull that off? I use Kitty as my terminal of choice. It is fast, feature-rich, and is cross-platform (Linux and macOS).
—
https://www.roboleary.net/2022/02/24/xkcd-in-the-terminal-with-some-bash-magic.html
Argc
Argc
We can easily access the corresponding option or parameter through the variable $argc_
—
https://github.com/sigoden/argc
What’s so special about PS1? Fun
What’s so special about PS1? Fun with customizing Bash command prompts
Long ago, when I was still a console newbie, I copied my friend’s bash configuration file. It had all the necessary stuff already included – aliases, colors, and most importantly: a nice prompt setup. I used it on all machines I had access to due to all the extra context it provided.
—
https://blog.warp.dev/whats-so-special-about-ps1/
TomWright/dasel
TomWright/dasel
Dasel (short for data-selector) allows you to query and modify data structures using selector strings. Comparable to jq / yq, but supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies.
—
https://github.com/TomWright/dasel
utt
utt
utt utt is the universal text transformer. utt is intended for converting between textual data representations. For example, utt can be used to convert from JSON to YAML: $ echo “[1, 2, 3]” | utt -i json -o yaml — – 1 – 2 – 3 $ Formats may be supported for input-only or output-only.
—
https://github.com/queer/utt
bash_loading_animations
bash_loading_animations
Ready-to-use loading animations in ASCII and UTF-8 for Bash scripts. Some of the animations have been adapted from https://github.com/sindresorhus/cli-spinners.
—
https://github.com/Silejonu/bash_loading_animations