Skip to content

Instantly share code, notes, and snippets.

@ndastur
Last active August 29, 2015 14:01
Show Gist options
  • Save ndastur/426e1838a074e7e5a027 to your computer and use it in GitHub Desktop.
Save ndastur/426e1838a074e7e5a027 to your computer and use it in GitHub Desktop.
Better alias for defining the Legacy Appcelerator CLI

Instructions in the Appcelerator Legacy CLI docs suggest setting up aliases. But these require manual adjustment when new versions are installed. This automacitally links to the latest legacy CLI.

LATEST_TI=$(ls -1 $HOME/Library/Application\ Support/Titanium/mobilesdk/osx/ | sort -r | head -1)
alias titanium.py="$HOME/Library/Application\ Support/Titanium/mobilesdk/osx/$LATEST_TI/titanium.py"
alias ios_builder="$HOME/Library/Application\ Support/Titanium/mobilesdk/osx/$LATEST_TI/iphone/builder.py"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment