Urgent.News

What's breaking now, across thousands of outlets.

Tech

Restoring My Shell Aliases on a New Mac (Bite-size Article)

Introduction This post is for Mac users. Following my previous post, here's another small thing I noticed when I replaced my Mac and moved over to the new one. I have a few homemade scripts (Python and so on) on my Mac that I use for work, and I had registered them as aliases so I could run them right away from the terminal. While working on my new Mac, I tried to run one of those scripts as…

This article is aimed at Mac users who have recently switched to a new computer. The author discusses an issue they encountered with their homemade Python scripts, which were previously set up as aliases for quick terminal access. Upon trying to run one of the scripts on their new Mac, nothing happened. They realized that the alias settings were not transferred during the backup process, as they had been adding new ones piece by piece.

Aliases, which are shortcuts for commands, are set in a file called ~/.zshrc, which is loaded automatically when the terminal is opened. The author explains how to add an alias to the file, save the changes, and apply them using the command source ~/.zshrc. They also mention that aliases can be viewed using the alias command. After restoring the ~/.zshrc file from their old Mac backup, the aliases were back, but the scripts still wouldn't run.

The reason turned out to be that the required Python libraries were not installed on the new Mac. The author installed the necessary libraries using pip, and the scripts began working again. The conclusion is that while restoring aliases is straightforward, the underlying environment those aliases depend on may not be transferred, leading to unexpected issues when trying to use them after switching machines.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

10 agents, 30 GB of RAM and one queue: how they share without clashing

For the two weeks after I published Sluice 0.8.0, I ran it every day on my two machines, both with 30 GiB of RAM, with up to 10 AI agents working at once on one of them.

  • Two machines with 30 GB RAM each used to handle 10 AI agents simultaneously
  • Queue determines job running order, memory ceilings enforce each job's share
  • Version 0.12.0 introduced daemon with its own environment to prevent memory usage

Japanese Text Breaks Your App in 7 Quiet Ways (With Code)

Your app passes every test in English. Then a Japanese user types their name, presses Enter, and the form submits half a word.

  • Enter key sends partial text during IME input
  • length doesn't count characters accurately
  • Line breaks and no spaces

Snort Sensors Are Better Found Through Networks Than Page Titles

Snort Sensors Are Better Found Through Networks Than Page Titles Cisco's Snort 3 security hardening release fixes CVE-2026-20043, an out-of-bounds write in HTTP response body processing.

  • Cisco's Snort 3 addresses critical out-of-bounds write vulnerability.
  • Network management platforms undervalue Snort sensors.
  • Accurate inventory of sensor versions crucial for protection.

More from Friday 13 November →