Hacker News with Generative AI: Bash

How to add a directory to your PATH (jvns.ca)
I was talking to a friend about how to add a directory to your PATH today. It’s something that feels “obvious” to me since I’ve been using the terminal for a long time, but when I searched for instructions for how to do it, I actually couldn’t find something that explained all of the steps – a lot of them just said “add this to ~/.bashrc”, but what if you’re not using bash?
Eight Obscure Bash Options You Might Want to Know About (zwischenzugs.com)
Some bash options are well known, and well-used. For example, many people put
Show HN: Interactive jq, but it's a bash script using fzf (github.com)
Instantly share code, notes, and snippets.
Shunpo: Minimalist bash tool to make directory navigation a little bit faster (github.com/egurapha)
Shunpo is a minimalist bash tool that tries to make directory navigation in terminal just a little bit faster by providing a simple system to manage bookmarks and jump to directories with only a few keystrokes.
Highlighting Parts of Lua as Bash (xnacly.me)
Bunster: Compile bash scripts to self contained executables (github.com/yassinebenaid)
Have you ever wished your shell scripts could be faster, more portable, and secure ? Bunster brings this to life by transforming your shell scripts into efficient, standalone binaries that are easy to distribute and deploy across platforms (only unix is supported at the moment).
How to track website analytics using only Nginx and pure bash (sanixdk.xyz)
Hi there, what's up ?
Bash Completion (2023) (erikarow.land)
This week, I’ve been exploring how tab completion works in Bash.
Today I learned that bash has hashmaps (2024) (xeiaso.net)
Hashmaps (associative arrays) are a great way to store a bag of key-value data. At work I was writing something that needed me to spawn a bunch of GPU instances, GPU availability is spread out by region and GPU type. I wanted to store a mapping of GPU kind to region name and for some reason I thought it would be a good idea to do it in bash.
A Raycaster in Bash (github.com/izabera)
My PhD advisor rewrote himself in bash (2010) (might.net)
The hardest part of advising Ph.D. students is teaching them how to write.
Bocker: Docker implemented in around 100 lines of Bash (2015) (github.com/p8952)
Docker implemented in around 100 lines of bash.
TIL: Some surprising code execution sources in bash (yossarian.net)
I ran across two surprising sources of code execution in bash (and probably other shells) recently.
TIL: Some surprising code execution sources in bash (yossarian.net)
I ran across two surprising sources of code execution in bash (and probably other shells) recently.
Useful built-in macOS command-line utilities (weiyen.net)
Sometimes when I'm bored, I like to look at the list of macOS Bash commands. Here's some commands that I found interesting:
PID 1 Bash script for Docker containers explained line by line (sirikon.me)
You wake up one morning, feeling bit spicy, daring to break rules, but you aren't the bravest one in town, so you choose something easy: "Let's break that rule about only running one process in a container".
A bash script to move untracked files out of a checked-out Git repository (github.com/blackbit42)
This is a simple bash script that helps you to quickly, temporarily move untracked files out of a checked-out git repository.
A bullet hell game written in bash (twitter.com)
LLM_transcribe_recording: Bash Helper Using Mlx_whisper (github.com)
A bash wrapper around python's mlx_whisper to leverage the GPU on a mac for transcription
Pong.bash (0x0.st)
Bashfuck: Write any bash with only the punctuation characters (github.com/meithecatte)
Metaprogramming in Bash (younglogic.com)
Show HN: notesbash – A notes management TUI written in bash (codeberg.org)
Show HN: Autocomplete.sh <Tab> in the shell to trigger LLM based bash_complete (autocomplete.sh)
Show HN: Ell – A command-line interface for LLMs written in Bash (github.com/simonmysun)
Zevweiss/booze: FUSE bindings for bash (github.com/zevweiss)
ps aux written in bash without forking (github.com/izabera)
Ps aux written in bash without ever forking (github.com/izabera)
Bashsimplecurses: Simple curses library made in bash to draw terminal interfaces (github.com/metal3d)
Bash-Oneliners: A collection of terminal tricks for Linux (github.com/onceupon)