shell

5 posts tagged “shell”.

  1. 2025
  2. A shell script for running Go one-liners

    bitfield/script is a really neat Go project: it tries to emulate shell scripting using Go chaining primitives, so you can run code like this: To achieve the same thing as: A comment from on Hacker…

    2 min read
  3. Customizing my zsh prompt

    I got fed up of the default macOS prompt: simon@Simons-MacBook-Pro % Mainly because I like copying and pasting terminal examples into GitHub issues.

    1 min read
  4. 2024
  5. Escaping strings in Bash using !:q

    TIL this trick, via Pascal Hirsch on Twitter. Enter a line of Bash starting with a comment, then run on the next line to see what that would be with proper Bash escaping applied.

    1 min read
  6. 2023
  7. Atuin for zsh shell history in SQLite

    Atuin (via Rhet Turnbull) "replaces your existing shell history with a SQLite database". Obviously I had to try this out!

    1 min read
  8. A simple pattern for inlining binary content in a Python script

    For simonw/til issue 82 I needed to embed some binary content directly in a Python script. I wanted to wrap that content to fit within 80 columns.

    1 min read