No description
Find a file
2017-12-19 13:30:02 +01:00
aka.swift Added license info to source file. 2017-12-19 13:25:11 +01:00
LICENSE Added MIT License. 2017-12-19 13:23:10 +01:00
README.md Add install info to README (TODO: make script) 2017-12-19 13:30:02 +01:00

Aka — resolve macOS aliases on the Terminal

Quick 'n' dirty resolution of aliases for the macOS command line.

Usage: aka <alias>

Example (bash, zsh, sh, csh, tcsh shells):

$ cd some-alias
cd: 'some-alias' is not a directory
$ file some-alias
some-alias: MacOS Alias file
$ aka some-alias
/Users/eaganj/path/to/some-alias/target
$ cd `aka some-alias`

# now in /path/to/some-alias/target:
$

Example (fish shell):

$ cd some-alias
cd: 'some-alias' is not a directory
$ file some-alias
some-alias: MacOS Alias file
$ aka some-alias
/Users/eaganj/path/to/some-alias/target
$ cd (aka some-alias)

# now in /path/to/some-alias/target:
$

Install

  1. Clone this repository
  2. Add aka to your path. For example, if ~/bin is in your path:
    • cd ~/bin && ln -s /path/to/aka.swift aka
    • -or-
    • mv aka.swift ~/bin/aka
  3. Make sure aka is executable: chmod +x /path/to/aka