Questions tagged [alias]

Use this tag for questions concerning use of alias in macOS

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Limit number for "Hide my Email"?

I am in the process of modifying all my accounts to assign a unique email address to each one via the "Hide my Email" function. I am currently at 273 addresses created for the occasion but I ...
user avatar
  • 1
0 votes
1 answer
42 views

How to use input variable in .zshrc alias?

I'm trying to create this alias: alias mrc="php artisan make:controller $(user_input) --resource" so that I can just type mrc ControllerName in the terminal to produce: php artisan make:...
user avatar
1 vote
1 answer
82 views

follow an alias link to a directory, using zsh and ohmyzsh

Is it possible to follow an alias link in Terminal using zsh and ohmyzsh? My Terminal states: 'zsh: permission denied:' or 'cd: not a directory:' . The alias is of course a little file and not a ...
user avatar
  • 11
3 votes
2 answers
2k views

Limitations of iCloud+ own domain

What are the limitations of iCloud+ own domain in regard to emails? Use Custom Email Domain with iCloud Mail https://support.apple.com/en-us/HT212514 I am looking for: a single domain which I ...
user avatar
  • 227
1 vote
2 answers
105 views

Is there a way to export aliases in macOS in the Korn Shell (ksh)?

Earlier versions of the Korn shell (ksh) allowed aliases to be exported to subshells by using the -x option, for example: alias -x dog=cat With the current version of macOS the ksh man page says: &...
user avatar
0 votes
1 answer
84 views

How do you manage your zsh aliases?

I guess I should just put all my alises in the ~/.zshrc, correct? Or are there other places that's a better fit for personal alises? Also wondering how you manage your list of aliases as you move ...
user avatar
  • 103
0 votes
0 answers
31 views

Send email from alias by default, Mail app

In the Mail app, I would like to automatically send new emails from my alias. I have the alias set up so that it appears as one of the options in the "From" menu when composing an email, but ...
user avatar
1 vote
1 answer
58 views

How can I find out which file(s) links to another file

This is a question about the reverse of a file link, which I can easily see in either Terminal or Get Info, ie. this lrwxr-xr-x 1 Alex admin 35 7 Aug 23:35 envsubst -> ../Cellar/gettext/...
user avatar
1 vote
0 answers
55 views

Can't move files into aliases stored on the Finder's Favorites sidebar?

I'm trying to make some aliases and add them to my Finder favorites so that they can be renamed without altering the original folder in any way (the original folder is on a shared work network). I'm ...
user avatar
1 vote
2 answers
111 views

Why do aliases with words not expand in big sur?

I have some aliases in my ~/.bashrc and ~/.bash_profile (I tried with and without .bash_profile), they were both sourced. alias ll=‘ls -l’ alias al=‘ls -ahl’ alias iridium=“~/git/iridium” alias ...
user avatar
0 votes
1 answer
36 views

cannot use the mac_alias package to generate an alias

I have about 3000 files and I need to turn them into aliases so doing it by hand is not an option plus in the future I want to be able to do this automatically. I'm trying to use this package https://...
user avatar
0 votes
2 answers
348 views

Is there a way to input values and then run aliases in iterm2

I just came to know about the alias option and I have this code which would download any youtube vid in the highest quality. But the problem is I have to enter the url of the youtube vid. Is there any ...
user avatar
  • 23
0 votes
0 answers
83 views

Cannot open folders in ~/Documents via alias or recent items

I am having a similar issue as outlined in this issue but with the added problem of I cannot open any folder located in ~/Documents via an alias or recent items. All that opens when I try is just the ...
user avatar
  • 1
1 vote
1 answer
92 views

For the life of me can't find where terminal alias's are stored

So I have been playing around with aliases in bash and it is easy enough to add them. alias lsl="ls -l" My question is, where are they stored? I am using the bash shell, so I looked in the ...
user avatar
  • 13
0 votes
0 answers
80 views

"locate" returns relative instead of absolute paths

I have the following entry in root's crontab: 0 */4 * * * cd /private/var/root && ./locate.updatedb I have an alias for locate in ~/.zshrc: alias locate='locate -d /var/db/locate.database' ...
user avatar
1 vote
1 answer
760 views

How can I open my Downloads folder in one click? [duplicate]

How can I open my Downloads folder in one click? Downloads are my most important folder because that's where the new files go. Yet, it is the only folder I can't make an alias for, meaning I can open ...
user avatar
0 votes
0 answers
516 views

macOS Big Sur can't remove ghost icon from deleted application

I've deleted TextMate and its alias from Launchpad and Library - still have a "ghost" icon showing in all windows (see screenshot). When I enter Launchpad that ghost icon (in last screen) ...
user avatar
  • 1
7 votes
1 answer
7k views

What is the "On My Mac" folder in macOS Big Sur?

I have recently upgraded to macOS Big Sur 11.0.1 from macOS 10.15.7 on my 2016 MacBook Pro. In Finder, there is a new (?) folder called "On My Mac" which I have never seen before. It ...
user avatar
1 vote
1 answer
501 views

Creating an alias for Python in bash/zsh

I have often seen people recommending to setup an alias in one's .bash_profile or .zshrc along the lines of alias python='python3' This seems like a convenient idea, however, as far as I understand, ...
user avatar
  • 132
0 votes
1 answer
111 views

iOS & iCloud File Aliases?

Anyone have any luck using iCloud file aliases with iOS Files?? Seems the aliases created on the Mac are nothing more than nearly empty text files that are useless in iOS?
user avatar
1 vote
1 answer
170 views

Any way to make symlinks or aliases resolve over a network with macOS?

So I like to move my big folders from the home folder on the macOS System SSD to a hard drive and keep the SSD mainly for the system files and apps, a fairly common practice. Problem is when I want to ...
user avatar
  • 11
0 votes
0 answers
532 views

How to use variable in alias termux?

my alias for opening Google is is like this alias g="termux-open-url https://google.com" for search url look like this http://google.com/search?q=what+I+search I wanted that if I write g what I ...
user avatar
2 votes
1 answer
552 views

How can I place a shortcut to a network folder in my sidebar?

My ultimate goal here is very simple: I want to place a shortcut to a specific network folder (on another machine my home network), in the sidebar of my personal machine. But I am getting some very ...
user avatar
  • 2,438
0 votes
4 answers
224 views

Opening Randomized Images From Multiple Folders With Preview Application

Basically what I am trying to achieve is the following: Create an alias list of any amount of folders with the Finder's selection. Get all images from those folders with a shell script. Randomize ...
user avatar
  • 53
4 votes
2 answers
654 views

List all aliases starting with a particular string

To improve on the steps I have to take to complete some actions on my Mac, I have created many aliases. Example: To open System Preferences, which I have to do often to manage multiple monitors, I ...
user avatar
  • 2,255
1 vote
0 answers
39 views

How to copy all content of a folder excluding one filetype?

I have a folder containing 74 subfolders, that has a number of aliases strewn about within it. I'm trying to copy the entire top-level folder (and all of its contents, obviously) over to Google File ...
user avatar
  • 2,438
0 votes
0 answers
162 views

Applescript alias is not updating after renaming a folder

I am still learning Applescript, but I am trying to script some automation for me. I am trying to get it to create a folder based on user input and then create a sub-folder with contents duplicated ...
user avatar
  • 1
0 votes
0 answers
94 views

Fixing aliases for hidden files

Had to migrate to a new Mac and all of the aliases I have for hidden files are broken. When I try to navigate to the original file when I click "fix alias", I can't see the file in question in the ...
user avatar
0 votes
1 answer
76 views

Is there a way to configure Finder to move files to external drives by default, rather than copying them?

I was recently helping somebody move their Mac's information to Google Drive, and the best solution turned out to be using the Google Drive client for Mac. I moved the relevant files to their Google ...
user avatar
  • 1,813
0 votes
1 answer
4k views

Turn Bluetooth On & Off via Terminal [duplicate]

I'm trying to find out how to turn Bluetooth On or Off by using the Terminal on macOS Catalina. I used to be able to do it with the following commands: alias bton="sudo defaults write /Library/...
user avatar
  • 1,090
0 votes
1 answer
49 views

trying to run FSF emacs in character based mode ( -nw ) on Catalina

After installing Catalina on my laptop emacs vanished so I installed the latest version from FSF. Running it in a window (gui mode) works fine but I can't get it to reliably work in character mode in ...
user avatar
0 votes
1 answer
191 views

How to make and alias list from multiples results of a shell script?

So this is the shell script that I have in my Applescript editor which brings up all of the videos that have been added to my computer today. do shell script "mdfind 'kMDItemDateAdded >= $time....
user avatar
  • 53
0 votes
1 answer
621 views

Applescript problems with renaming a file and getting the alias to change it's name as well

I have run into a particular problem with a larger script that I am writing. I am trying to rename all the files in a folder with a prefix of "temp_" and in doing so have the alias to that file still ...
user avatar
1 vote
1 answer
1k views

spotlight finds "anaconda-navigator" but `conda` has been uninstalled

CLARIFICATION. I am not trying to use conda, much less reinstall it. My question is about a behaviour that I don't understand. THE BEHAVIOUR. Some time ago I (must have) uninstalled conda, and ...
user avatar
  • 167
0 votes
1 answer
37 views

Command works when run from alias but not when typed?

I use to type this command a lot : sshfs 10.xxx.xx.4:/Users/username/code mountpoint So one day i put it as an alias on my .bash_profile as alias sshfs='sshfs 10.xxx.xx.4:/Users/username/code ...
user avatar
  • 3
2 votes
2 answers
446 views

MacOS zsh alias pwd is incorrect

I recently switched to MacOS and some aliases in ZSH which were working on a linux system is giving me headaches in MacOS. To be specific, pwd variable inside alias is using the same directory where ...
user avatar
  • 121
0 votes
0 answers
33 views

How can I create an alias/shorcut to sudo/root an app permanently?

I would like to have an alias to run an app as root always. I am trying to save time and not go through the terminal commands. Thanks!
user avatar
  • 71
0 votes
1 answer
186 views

The command for alias local='...' gets run on terminal open

I have an alias set up in my .bash_profile file: alias local='npm run start-local', and for whatever reason when I open a new terminal session it is trying to run that command npm run start-local ...
user avatar
1 vote
1 answer
140 views

Open folder in dock by simply clicking

Hi. In my workspace I have these frequently used folders that I keep in my dock, but I find it annoying that I have to right click and click "open" every time i want to open them. Is there some way I ...
user avatar
1 vote
2 answers
128 views

Recreate old aliases in bulk to reduce their file size, keeping their name and creation date

I noticed that in recent versions of macOS, aliases I create are smaller than they used to be. I have a folder full of old aliases whose sizes range from 50 KB to 6 MB, but new aliases seem to be ...
user avatar
  • 1,191
7 votes
2 answers
5k views

Best practices to move macOS Mail.app storage to an external drive?

I have a system with fairly small internal storage (500GB) so I have attached a reasonably quick external storage device (256GB) that will be constantly mounted. To free up space on the internal ...
user avatar
  • 1,423
5 votes
1 answer
267 views

How can I create a Finder alias in a bash script that reads arguments from the command-line?

I'd like to write a bash script that takes 2 inputs: path to actual file path of a Finder alias file (not a unix link) to be created that refers to 1. The bash script should pass these inputs to an ...
user avatar
  • 153
2 votes
1 answer
786 views

Finder doesn't show thumbnails for Alias in OS 10.14.2

Since upgrading to 10.14.2, the Finder doesn't make thumbnails for aliases of jpeg image files, instead, it only displays the generic JPEG icon. Is this a new bug, or is there a hidden setting ...
user avatar
  • 31
1 vote
2 answers
225 views

Bash Alias Not Found Error

I have the following command that I am trying to put into a bash alias. The command by itself works fine, but when I try to alias it, I am getting the following errors: The Command find . -maxdepth ...
user avatar
  • 1,420
2 votes
2 answers
800 views

How does macOS implement symbolic link in Mojave on FAT32 filesystems?

I remember in the past, not all types of aliases (as in the macOS feature) can be created on all filesystems. This is because symbolic link (as in the type of file) is a special Unix file type, ...
user avatar
  • 163
1 vote
1 answer
64 views

How can I create text-based aliases? (Local hyperlinks?)

I need to use deeply-buried files/folders on a hard disk at work. I can create aliases, which is helpful. An alias gives me an icon that I can double-click to open the original. But I would like to ...
user avatar
3 votes
1 answer
1k views

Alias in bash to Change Directory

When I am typing in a typical alias with my .bash_profile, my change directory is not working. I currently have the following: alias cdicloud="/Users/<username>/Library/Mobile Documents/com~...
user avatar
1 vote
0 answers
220 views

How to set PHP alias for all users

This is probably easy, but I don't know how to set it for all users. So, when I run: which php it shows /usr/local/php5-7.2.0-20171215-181251/bin/php However I've just installed PHP using brew on ...
user avatar
3 votes
0 answers
1k views

How can one trigger the creation of an iCloud Drive alias?

I am not referring to traditional symlinks in general, but specifically to the "alias" files used within iCloud Drive. I am also not referring to "stub" files that indicate that a file has not yet ...
user avatar
  • 2,885
1 vote
2 answers
320 views

Can't navigate to folder alias on server in the save window

After upgrading to macOS High Sierra, I can't save a file to the alias of a folder in the open/save dialog box on a server. When browsing to the folder I want to save the file to, the folder aliases ...
user avatar
  • 191