mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.7K
active users

#alias

0 posts0 participants0 posts today

New article: "The command line (mostly Git) abbreviations I rely on"

I'm all about saving keystrokes. Common CLI tasks are an easy target. I use abbreviations (CLI text expansion) but many of these will work as aliases too.

Between the lack of algorithm and my not making money off visits, you can believe me when I say it's worth a click just to see this hero image — "A fat hunchbacked man with two large warts on his nose with hairs growing out, admires his fashionable wig in a hand-mirror; a grinning barber trims his wig in front of a table on which there are various hair-dressing appliances"— unobscured by text.

olets.dev/posts/the-command-li

olets.devThe command line (mostly Git) abbreviations I rely on
More from Henry Bley-Vroman
#zsh#FishShell#git

Email aliasing: Are these my "best" options?

-DuckDuckGo (big corporation, dabbling in AI)
-Simple Login (Proton, whose CEO is being weird)
-addy dot io (there were some posts on here awhile back about why the io domain is shitty but it doesn't look like I bookmarked any of them, the gist was imperialism so I like to avoid the domain)
-figuring out how to generate them using an email provider itself (clunky, usually end up with really long addresses, may not even hide your original address, may only be able to generate a limited number which kinda defeats the purpose for me because I want single-use ones)

In my early years of #Linux I used the #fish #shell before I switched to #zsh at some point. For reasons I am considering returning to fish. I have figured out how to define my #alias there. For #ledger I entered "export LEDGER_FILE=$HOME/some/directory/ledger.dat" in all other shells so that I did not have to enter the full path every time I wanted to use ledger. In fish "set -gx ..." is supposed to perform this function, but ledger then complains that it cannot find a journal file. Does a similar functionality not work in fish or am I doing something wrong? #Arch #ArchLinux

In meinen #Linux Anfangsjahren nutzte ich die #fish #shell, bevor ich irgendwann zu #zsh wechselte. Aus Gründen überlege ich eine Rückkehr zu fish. Wie ich dort meine #alias definiere, habe ich herausgefunden. Für #ledger habe ich in allen anderen shells ein "export LEDGER_FILE=$HOME/some/directory/ledger.dat" eingetragen, sodass ich nicht jedesmal den ganzen Pfad angeben brauchte, wenn ich ledger nutzen wollte. In fish soll "set -gx …" diese Funktion erfüllen, doch ledger beschwert sich anschließend, dass es keine Journal Datei findet. Klappt da bei fish eine vergleichbare Funktionalität nicht oder mache ich etwas falsch? #Arch #ArchLinux

Today I learned how to create a Finder alias using AppleScript and the command line:

```bash
$ osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-plus@29/Emacs.app" at posix file "/Applications" with properties {name:"Emacs.app"}'

alias file Emacs.app of folder Applications of startup disk
```

This is for the particular case of creating an Emacs.app named alias at the Applications folder for the Homebrew version of the `emacs-plus` package, but changing the paths above will allow you to create arbitrary Finder aliases from the command line.