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·قبل سنتين·4 comments

comments

afefers
·السنة الماضية·discuss
Can you explain how you achieve this?
afefers
·قبل سنتين·discuss
Huh! All this time I thought the "super" was just for branding/differentiation.
afefers
·قبل سنتين·discuss
Not Apple... At least as far as I known.
afefers
·قبل 3 سنوات·discuss
[flagged]
afefers
·قبل 3 سنوات·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 سنوات·discuss
The irony is using a JavaScript-based static site generator to make the site: https://www.11ty.dev
afefers
·قبل 3 سنوات·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 سنوات·discuss
The killer feature for me is not being an Electron app.
afefers
·قبل 3 سنوات·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 سنوات·discuss
Thank you so much! This got me looking at the Ruby documentation about blocks. Very cool feature!
afefers
·قبل 3 سنوات·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 سنوات·discuss
What is MLS?
afefers
·قبل 3 سنوات·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 سنوات·discuss
This is fantastic but I can't see myself using it simply because it uses Electron.
afefers
·قبل 4 سنوات·discuss
What was made? I wasn't even born in 95 and am deeply curious to know.
afefers
·قبل 4 سنوات·discuss
Those are really good! Thanks for sharing. Curious to see the others. Are they available somewhere?
afefers
·قبل 4 سنوات·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 سنوات·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.