Questions tagged [alias]

Use this tag for questions concerning use of alias in macOS

Filter by
Sorted by
Tagged with
1
vote
1answer
29 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 ...
6
votes
3answers
7k 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?
0
votes
0answers
55 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 ...
2
votes
2answers
177 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 ...
1
vote
1answer
29 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 ...
4
votes
2answers
13k views

Creating aliases for iTerm 2 that work during ssh

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 ...
0
votes
4answers
87 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 ...
4
votes
2answers
151 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 ...
0
votes
1answer
97 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
0answers
28 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 ...
3
votes
2answers
9k views

How to make an alias link to a Windows server folder

On our server (windows 2012) we have a folder for Scan files called server/scans/(username). I know how to setup link from windows PC so that user can access the scans. How do I setup the same thing ...
0
votes
0answers
65 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 ...
0
votes
0answers
29 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 ...
0
votes
1answer
25 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 ...
0
votes
1answer
121 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 ...
0
votes
1answer
39 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 ...
6
votes
1answer
2k 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 ...
0
votes
1answer
632 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/...
0
votes
1answer
65 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....
28
votes
2answers
102k views

Why must I source .bashrc every time I open terminal for aliases to work? [duplicate]

I added this line into my ~/.bashrc file. alias myserver='ssh davidfaux@davidfaux.com' However, when I open terminal and run myserver, terminal complains that -bash: myserver: command not found ...
1
vote
1answer
369 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 ...
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 ...
2
votes
2answers
3k views

Stop Finder from creating aliases when moving Applications

In Snow Leopard, Finder treated .app files like any other application. You could drag an application between any two folders at will, and the application would be move. At some point since then (I ...
0
votes
1answer
27 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 ...
0
votes
1answer
158 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 ...
2
votes
2answers
563 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
3answers
5k 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
0answers
24 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!
1
vote
2answers
429 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?
1
vote
1answer
49 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
67 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 ...
5
votes
2answers
2k views

How to move a folder containing aliases to another machine without breaking the aliases?

I've got a large folder of music with lots of aliases to tunes that are spread throughout subfolders of the main tunes folder. For example I might keep the original files sorted by artist, and then ...
10
votes
2answers
2k views

Why are the alias so big in filesize in Mountain Lion?

I noticed the alias(es) that I create in Mountain Lion are very big in filesize (for example an alias to a folder is 5.8MB!) Compared to Leopard, they were just about 500KB. Why is this? and is ...
0
votes
1answer
646 views

How to get the shortest file size on aliases?

I realize a bit of why they are so big. Actually, they used to be small enough (around 2kb) and still magical about keeping the file link. I can also see a few ways to "shorten" it, including one I'...
1
vote
1answer
453 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 ...
10
votes
6answers
5k views

How to go to alias from terminal?

By alias, I mean the folder shortcut created when you right-click a folder in Finder and select "Make Alias". I can traverse symbolic links in Terminal with cd, but it doesn't work on aliases: bash: ...
17
votes
5answers
38k views

Can I create a Desktop Shortcut/Alias to a Folder from the Terminal?

I'd like to create a desktop shortcut to a specific folder, buried deep within ~/Library/. Library is Hidden by default in Lion, and I'd like to keep it that way, for a variety of reasons. Is there a ...
5
votes
1answer
171 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 ...
0
votes
1answer
347 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 ...
5
votes
1answer
284 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 ...
0
votes
1answer
308 views

Some aliases return 'No mapping found' [closed]

After editing .bash_profile, .bashrc, .inputrc dotfile config my aliases went silly. Some aliases work as expected. Others for no apparent reason return: No mapping found Press ENTER or type command ...
1
vote
1answer
523 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
2answers
213 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 ...
18
votes
7answers
45k views

How to persistently define aliases in Terminal

I want to add aliases to my environment so that they are available in all Terminal instances. I got this answer: Yes, you can put it in your .bashrc, .bash_profile or .profile. On some systems the ...
1
vote
1answer
31 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
801 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~...
2
votes
0answers
738 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
0answers
146 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 ...
1
vote
1answer
202 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
1k views

Setting up bash_profile but alias not found?

Trying to set up my bash_profile but I don't know what I'm doing wrong. touch ~/.bash_profile And... open ~/.bash_profile Save and close the .bash_profile. Then close and re-open Terminal and I ...