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:

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
top 11 comments
sorted by: hot top controversial new old
[–] Mothra@mander.xyz 3 points 9 hours ago

surprisedpikachu.jpg

[–] call_me_xale@lemmy.zip 10 points 12 hours ago

Would be cooler if it were 100%, but I'll take it.

[–] melp@beehaw.org 9 points 14 hours ago

Now tank everything else he is invested in

[–] SkaveRat@discuss.tchncs.de 9 points 17 hours ago (1 children)
[–] Wutchilli@feddit.org 3 points 16 hours ago (1 children)
[–] sfxrlz@lemmy.dbzer0.com 2 points 16 hours ago

Keinen Tesla kaufen auf jeden Fall

[–] some_guy@lemmy.sdf.org 5 points 16 hours ago* (last edited 16 hours ago) (2 children)

I have a ~/.dotfiles/functions/ directory full of bash functions that do all sorts of handy things. I also have an alias to re-source my shell set to src 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:

cd        die       funcinfo  kbase     mkcd      prinfo    rule      spinner
cdd       duc       gcl       lkp       myip      psh       rulem     szh
cdf       durh      getip     lsp       oscheck   rederr    server    szup
console   fk        hgr       lspx      pfetch    rmhost    shc       usage
count     fp        int       mcat      phed.sh   rotl      shebang   version
date      fpr       j2        menu      phpserver rotr      shgrep    xcpx

shebang, for example, creates a new file with a header (#!/usr/bin/env bash) and then two carriage-returns in vim 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.

[–] SkaveRat@discuss.tchncs.de 15 points 16 hours ago (1 children)

I think you got the wrong thread

[–] I_am_10_squirrels@beehaw.org 4 points 14 hours ago

Still good advice

[–] remington@beehaw.org 6 points 15 hours ago (1 children)

Did you mistakenly respond to the wrong post?

[–] melp@beehaw.org 3 points 14 hours ago