this post was submitted on 05 Mar 2025
67 points (100.0% liked)
World News
22190 readers
169 users here now
Breaking news from around the world.
News that is American but has an international facet may also be posted here.
Guidelines for submissions:
- Where possible, post the original source of information.
- If there is a paywall, you can use alternative sources or provide an archive.today, 12ft.io, etc. link in the body.
- Do not editorialize titles. Preserve the original title when possible; edits for clarity are fine.
- Do not post ragebait or shock stories. These will be removed.
- Do not post tabloid or blogspam stories. These will be removed.
- Social media should be a source of last resort.
These guidelines will be enforced on a know-it-when-I-see-it basis.
For US News, see the US News community.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have a
~/.dotfiles/functions/
directory full ofbash
functions that do all sorts of handy things. I also have an alias to re-source
my shell set tosrc
to make changes to everything speedy, which the author should do something similar. Here's the contents, from which you can suss some of what they do:shebang
, for example, creates a new file with a header (#!/usr/bin/env bash
) and then two carriage-returns invim
so I can start a new script from the cli.All of these are something I thought would be useful at the time I created them, even if I only rely on a small number daily. Some of them are relied upon when scripting and never used at the cli independently. I started doing this when reading Pro Bash Programming, by Chris F. A. Johnson.
I think you got the wrong thread
Still good advice
Did you mistakenly respond to the wrong post?
lol right?