HackerTrans
TopNewTrendsCommentsPastAskShowJobs

afefers

no profile record

Submissions

Ask HN: What are the best things in your shell config? Functions, aliases, etc.

6 points·by afefers·2 years ago·4 comments

comments

afefers
·last year·discuss
Can you explain how you achieve this?
afefers
·2 years ago·discuss
Huh! All this time I thought the "super" was just for branding/differentiation.
afefers
·2 years ago·discuss
Not Apple... At least as far as I known.
afefers
·3 years ago·discuss
[flagged]
afefers
·3 years ago·discuss
Firefox doesn't have support for AppleScript and this is crucial to my browser habits/workflow. Both Safari and Chrome/Chromium-based browsers have it. Once/if Firefox adopts it, which I doubt but hope so, I'll consider using it.

Here is the 22 years old ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=125419
afefers
·3 years ago·discuss
The irony is using a JavaScript-based static site generator to make the site: https://www.11ty.dev
afefers
·3 years ago·discuss
Yup. I use Emacs since 2002 and am pretty happy with it. Never used an Electron-based app and probably never will.
afefers
·3 years ago·discuss
The killer feature for me is not being an Electron app.
afefers
·3 years ago·discuss
I don't know anybody who uses Signal and isn't a programmer (on the cryptography/security side) or journalist that needs it in order to work. Anybody else uses Telegram, WhatsApp, or both. SMS if you're in the USA.
afefers
·3 years ago·discuss
Thank you so much! This got me looking at the Ruby documentation about blocks. Very cool feature!
afefers
·3 years ago·discuss
As someone who's new to programming and doesn't know Ruby at all, can you (or someone) please explain how it works, what it does, and how would someone use it?

I find it beautiful, tho :)
afefers
·3 years ago·discuss
What is MLS?
afefers
·3 years ago·discuss
I would love to see this money ($30M) being given to Andreas Kling and others behind Ladybird (the browser from SerenityOS). I'm pretty sure in 1-2 years they would have a better browser than the current Firefox.
afefers
·3 years ago·discuss
This is fantastic but I can't see myself using it simply because it uses Electron.
afefers
·4 years ago·discuss
What was made? I wasn't even born in 95 and am deeply curious to know.
afefers
·4 years ago·discuss
Those are really good! Thanks for sharing. Curious to see the others. Are they available somewhere?
afefers
·4 years ago·discuss
Thank you! Just converted it to Emacs Lisp:

  (defun new-note ()
    (interactive)
    (insert "----------------\n")
    (insert (shell-command-to-string "echo -n $(date \"+%Y-%m-%d %T\")"))
    (insert "\n"))
  
  (global-set-key (kbd "C-M-n") #'new-note)

And to invoke it from the shell:

  emacs --function new-note --file notes.txt

If somebody knows a better or more elegant way to do this, please tell me!
afefers
·4 years ago·discuss
This is so cool! Care to share it? I'm a non-programmer-who-wants-to-be-a-programmer and I loved this approach.