Questions tagged [alias]

Use this tag for questions concerning use of alias in macOS

Filter by
Sorted by
Tagged with
2
votes
1answer
23 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 ...
0
votes
0answers
18 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!
0
votes
1answer
59 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 ...
1
vote
1answer
31 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 ...
1
vote
2answers
48 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 ...
3
votes
1answer
654 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 ...
5
votes
1answer
105 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 ...
1
vote
1answer
149 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 ...
1
vote
2answers
158 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 ...
2
votes
2answers
390 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, ...
1
vote
1answer
26 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 ...
3
votes
1answer
281 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~...
1
vote
0answers
77 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 ...
2
votes
0answers
360 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 ...
1
vote
1answer
105 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 ...
0
votes
1answer
127 views

random “broken” alias from Keynote presentation

So for over a few months now ive been having issue with the Keynote application creating these 'broken alias' files on my MacBook Air randomly from time to time(10.13.5 High Sierra; APFS Volume). Ive ...
5
votes
1answer
247 views

AppleScript: alias reference is not changing after renaming a folder

I'm new to AppleScript and after doing: set folder_name to "New_Folder" tell application "Finder" to make new folder at desktop set my_folder to result as alias tell application "Finder" to set the ...
4
votes
2answers
244 views

How to create an Alias with a Variable inside?

I want to create an Alias for my Terminal to quick-search inside files. In Ubuntu is was: alias gre="egrep -rnw ". I used it like that $ gre 'my search string'. Now I want this for my local MacBook-...
0
votes
1answer
235 views

“can't get alias”?

I have the following script that I want to use to change a single string in a Pages file to another, and it bombs with can't get alias. How do I fix this? tell application "Pages" set MYTESTFILE ...
3
votes
3answers
179 views

Alias - 'Show Original' in new tab

Update: After the two answers so far I have moved the goalposts slightly. I need multiple selections & tabs - the existing answers; one has multi-select capability, the other gives me tabs, which ...
3
votes
2answers
907 views

symbolic link vs. alias

Disclaimer: I work with programmers, but am not one myself and have no real / formal knowledge of how an OS works; please be patient if the following makes plain my ignorance :) I am trying to ...
0
votes
2answers
188 views

How do I make aliases hidden in macOS?

When I enter in Terminal: chflags hidden location_of_alias it hides the actual original folder the alias points to but it does not actually hide the alias itself. How do I do it?
2
votes
2answers
5k views

Creating aliases for iTerm 2

I use numerous aliases set at a given UNIX environment. For example my current fish shell under OSX have these below gm -> git merge dk -> docker kill and so on. Now the challenge is I use iTerm 2 ...
2
votes
1answer
591 views

Is it possible to edit a macOS alias with vim?

I like to use macOS's alias feature to not have to make redundant files. These aliases work great with Chrome and TextEdit. When I open them with vim, however, I get a giant messy file (presumably the ...
1
vote
1answer
438 views

Remotely accessing Time Machine folder structure using Back To My Mac

I'm in Japan, and I have a Time Machine backup on a disk that's hooked up to my AirPort Extreme in New York. I can connect to the disk using Back To My Mac. The disk is quite old, and I have no backup ...
1
vote
1answer
417 views

Search for alias not finding files

I am running Yosemite on a Mac Pro Mid 2010. When I moved to an SSD for my boot drive, I started using Symbolic Linking so some apps would store their data on a regular HD. So, for example, I go to ...
2
votes
0answers
37 views

How to fix the command line shortcut for the Brackets editor?

I've installed Brackets, but if I try to type brackets at the command line I get -bash: brackets.sh: command not found I've found that the shell script is located in /Applications/Brackets.app/...
0
votes
0answers
459 views

Make Desktop the alias folder macOS High Sierra

How can I make the Desktop folder, the alias folder for a different folder too? In other words: In Mail app, if you double click on an image someone emailed to you, it downloads to: /Users/name/...
1
vote
1answer
156 views

how to create environment variables recognized by OSX gui

I use a lot of aliases in my ~/.bash_profile.. just to make my navigation easier and so on. I was wondering if I can make environment variables recognizable by OSX at a gui level.. for example if I ...
1
vote
1answer
413 views

List of Metadata Attribute Aliases That I can Search for in Spotlight

If I open up Spotlight, I can use metadata attributes such as kind:pdf and date:today to refine my search. I'm curious if there's a way to list all of these attributes that I can use with this ...
1
vote
1answer
41 views

Moving mail to folder removes it from mail account

I have two aliases set up in my Gmail account and on my Mac Mail.app I set up a rule for each alias that if an email is "to 'Alias A'", move it to folder "Alias A Folder" - respectively for "Alias B". ...
0
votes
1answer
215 views

How to organize/sort alias mails?

I have one mail account with 3 aliases. I am wondering if there is any way to separate them from one mailbox to 4 individual mailboxes? Is there a "hidden feature" I do not know about that lets you ...
2
votes
1answer
237 views

Copy the original when dragging a alias

I have i.e. a folder full with alias from everywhere on my system. Now I want to give exactly this files as the originals to an extern hard drive or what else. Is there a way to simply take these ...
1
vote
2answers
999 views

Possible to create a Bash alias that enters a certain string into Terminal?

Is it possible to create a Bash alias that upon running, enters a string of my prior choosing, into Terminal? Let's pretend this is in my ~/.bash_profile: alias start_youtube="cd ~/Video/Youtube; **[...
0
votes
0answers
33 views

Is it possible to create a shortcut that represents every file in a directory

Is it possible to create a shortcut ln -s ./source ./destination that represents every file in a directory? I know I could just create an alias for the parent directory, but in my situation, I have ...
2
votes
1answer
93 views

Can you have symlinks across various backup disks/ volumes?

Is it possible to have two backup disks, which, when connected to the same machine, can have directories symlinked to each other? I'm working on this triple redundant backup scheme in which not all ...
1
vote
1answer
39 views

Alias multiple folders into one

Here's the thing: I'm organizing my document (for example to organize papers). I divide them into subsections, (ex: astrophysics & quantum physics) and all those sections have a "Read", "Reading" ...
2
votes
2answers
212 views

How to put Desktop on External Drive/Non-System Partition?

Is it possible to get something like a symbolic link/alias to direct to another folder on an external hard drive and still have the files display on the desktop? I used: sudo rm -rf ~/Desktop sudo ...
3
votes
2answers
1k views

How to use AppleScript in a bash script to create an alias for an app?

I need to create an alias on my Desktop to an app in my Applications folder, using a bash script file. As far as I know, it's only possible with AppleScript. Unfortunately, my AppleScript skills are ...
0
votes
1answer
67 views

.cshrc got empitied, aliases are loaded in opened terminal, how to retrieve them?

accidentally my .cshrc file got deleted, which had many aliases. I have terminal tab opened in my linux machine, which has all these aliases loaded in it. How can i retrieve it so that i could write ...
1
vote
1answer
117 views

Execute alias with sudo at session startup

I created the following alias and put it into my ~/.zshrc: alias kiosk-proxy="echo \"rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080\" | sudo pfctl -ef -" It's basically a ...
2
votes
1answer
231 views

Recreate an alias with the same name and timestamp programmatically

Let us develop a utility to batch process legacy alias files. Implemented as: Finder File Service, Automator Workflow, Applescript, Shellscript, or whatever else that those the job. Per each file ...
1
vote
3answers
4k views

How to create a link, for multiple users, to a network share, which itself is on a network share?

Working Windows-based solution I've got a folder on a network share which works great in Windows. It is basically an index of other available file servers. It looks something like this: \\server1\...
0
votes
1answer
417 views

MacOS Sierra vs my installer DMG's icon

I am distributing my (heavily edited in the picture below) app via a read-only installer DMG. Both the app and the DMG are signed and pass the Gateway validation. My build machine is an El Capitan 10....
5
votes
4answers
4k views

Sierra Finder aliases appearing as generic icons

Since updating to macOS Sierra, many Finder aliases appear as generic document icons rather than as the informative icons that were available in previous versions of OS X. Is there something I can do ...
3
votes
2answers
5k views

Run lolcat after each command?

I'm trying to add an alias for lolcat that will invoke after each command put into the terminal. I only know how to add it to select items, anyone know how to just make it a standard output?
1
vote
2answers
4k views

What happens when put a Finder alias in a Dropbox folder?

I have several folders and files that I would like to link to a local folder that happens to be a Dropbox folder. Specifically I'd like to put Finder aliases to some files and some folders into a ...
1
vote
1answer
1k views

How do I create a desktop shortcut for VNC?

I connect to my Raspberry Pi with VNC from my MacBook, however to do that every time I have to open the Finder, then select Go from the menu, then Connect to server. I am looking forward for having a ...
0
votes
1answer
827 views

Folder that automatically creates aliases

I like to save inspirational imagery in my dock. Since my Downloads folder is always a giant pile of files that I hoard and enjoy to go through every once in a while. Now to save space in my Dock I’d ...
1
vote
1answer
2k views

Alias of app not showing up in launchpad

I downloaded this application (code composer studio from TI) and installed it and two applications showed up inside a folder called "TI (other)", one application called eclipse and another called "...