revans / Ti

A Rapid Development framework for Titanium
http://www.codewranglers.org
MIT License
88 stars 21 forks source link

zsh support ? #34

Closed michelson closed 12 years ago

michelson commented 12 years ago

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