{
  "id": 19878974,
  "title": "Restoring My Shell Aliases on a New Mac (Bite-size Article)",
  "url": "https://urgent.news/2026/11/13/restoring-my-shell-aliases-on-a-new-mac-bite-size-article",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-13T22:38:42.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/koshirok096/restoring-my-shell-aliases-on-a-new-mac-bite-size-article-1bbn"
  },
  "original_language": "en",
  "account": "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.",
  "summary": "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…",
  "key_points": [
    "Aliases set in ~/.zshrc file for quick terminal access",
    "Aliases not transferred during backup to new Mac",
    "Restoring ~/.zshrc restores aliases but requires Python libraries"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}