revans/Ti — Issue #34: zsh support ?
Author: michelson
Created: 2012-02-08 02:58:04+00:00
State: open

Hi im trying to install Ti , its a very cool project!

i use zsh an i put this line in .zshprofile

alias titanium=$HOME/Library/Application\ Support/Titanium/mobilesdk/osx/1.8.1/titanium.py

in console when i try to load a project it dont work as spected

zsh: permission denied: /Users/me/Library/Application

when i try to use the Ti command it fails with the tmp file not found files,

but i harcoded the path in the generate_titanium_project method project generator rb
.....
titanium_path = '$HOME/Library/Application\ Support/Titanium/mobilesdk/osx/1.8.1/titanium.py'
cmd = "#{titanium_path} create --name=#{@project_name} --platform=#{@device_platform} --id=#{@app_id}"
# We need to use the session gem so that we can access the user's aliases
#bash = Session::Bash::new 'program' => 'bash --login -i'
#bash.execute(cmd) { |out, err| puts out }
exec cmd

and it works.

any hints about that ? maybe its because i have activated zsh and the Ti comand executes a bash session comand ?

thanks