Tag Info

New answers tagged

1

Here is my take on this. add and load this function to your .profile. function cd { thePath=`osascript <<EOD set toPath to "" tell application "Finder" set toPath to (POSIX file "$1") as alias set theKind to kind of toPath if theKind is "Alias" then set toPath to ((original item of toPath) as alias) end if end tell return ...


3

I haven't tested the answer by @klanomath, but there used to be a Python library to get the target of an alias, but Carbon support was removed from the Apple frameworks. It can be done in Objective C see http://stackoverflow.com/a/21151368/838253. The best bet is to use symlinks, but unfortunately Finder does not allow you to create these. I have written ...


2

To enable cd'ing into a folder alias I've found the following at Mac OS X Hints. Compile the source code below with the following command: gcc -o getTrueName -framework Carbon getTrueName.c This will create the ‘getTrueName’ executable in the same directory as the source. You can add it to your PATH, or just copy it directly to /usr/bin or /usr/local/bin ...


0

While a symbolic link (UNIX alias) looks the same as a Finder alias inside Finder, they are two complete different types of aliases. A symbolic link will only hold the path it leads to and will permanently or temporarily break if the resource is moved or on a disconnected drive or share respectively. A Finder alias is technically an ordinary file with ...


0

Did you tried zsh-completions? $ brew info zsh-completions zsh-completions: stable 0.12.0, HEAD https://github.com/zsh-users/zsh-completions Not installed From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/zsh-completions.rb ==> Caveats To activate these completions, add the following to your .zshrc: ...



Top 50 recent answers are included