I know that you can quickly launch PyCharm to work on a particular Python project directory by just doing:
charm directory
In this case, the charm command lives in /usr/local/bin.
But can do you do the same of AppCode, pointing it to a .xcodeproj or .xcworkspace file/?
You can use the standard OS X 'open' command: 'open -a AppCode.app --args ...'. Please see the manual here.
Appcode has built-in terminal tool. In the menu, select
Tools -> Create Command-line launcher...
Related
which code
code not found
Selecting the Install 'code' command in Path option from the VSCode command palette only fixes the problem temporarily.
The code command works then, even when I restart the terminal.
However, when I restart my computer I am back to
code not found
I can see that code is at /usr/local/bin/code
/usr/local/bin is already in my path.
Check that the symlink /usr/bin/local/code isn't pointing to a translocated version of the VSCode binary. Mine was.
$ ls -l /usr/local/bin/code
code -> /private/var/folders/hz/w...n/T/AppTranslocation/...
To fix
Ensure your VSCode installation is not running in App Translocation. This can happen if you move the VSCode binary to /Applications by, for example, using an Alfred workflow. You must manually drag the binary in to the folder in Finder. (What a drag. Ha ha. But seriously, WTF Apple?)
You can fix this by dragging your existing binary out to the Desktop then back to the Applications folder.
Delete the broken symlink: sudo rm /usr/local/bin/code.
Re-install the link using the command in VSCode ("Install 'code' command in PATH").
I installed Eclipse using the Software Manager (mintInstall) on Linux Mint 15. I am trying to create an Eclipse shortcut on my Desktop via Terminal. I looked it up and found out about the mkshct command. However, I have the following problems:
Where did the Software Manager install Eclipse? (Other applications on too while on this topic)
Am I on the right track using mkshct?
How I solved this issue:
Open the downloaded file (it will have eclipse, eclipse.ini, epl-v10.html, etc.)
Right click on the eclipse file (the same file that launches Eclipse) and click on Make a Link, than drag the link to your desktop.
The Eclipse package also contains icon.xpm if you want to change the link/desktop icon.
Maybe it is in /opt/eclipse/.
P.S. Download from eclipse.org new version and you can run eclipse without installing from the folder.
If you open the Start Menu option on the bottom right, search for Eclipse.
Once you find it (normally found under 'Development') just drag the icon to the desktop and a shortcut will be made for it.
CLI approach:
% which eclipse
% /xxxxxx/xxxxx/xxxxx/xxxx/eclipse
% ln -s /xxxxxx/xxxxx/xxxxx/xxxx/eclipse /yyyy/yyyy/yyyy
where /xxxxxx/xxxxx/xxxxx/xxxx/eclipse is output of % which eclipse and /yyyy/yyyy/yyyy is where you want symbolic-link(shortcut)
we type "which eclipse" to know where your eclipse is installed
first check Eclipse path $ which eclipse
1. $ sudo apt install gedit
2. $ cd Desktop
3. $ touch eclipse.desktop
4. $ gedit eclipse.desktop
5.
syntax:
[Desktop Entry]
Type=Application
Name=Name of your application
Icon=/path/to/icon
Exec=/path/to/application
You have to edit Name, Icon and Exec
[Desktop Entry]
Type=Application
Name=eclipse
Icon=/home/mypc/SOFTWARES/eclipse/icon.xpm
Exec=/home/mypc/SOFTWARES/eclipse/eclipse
Make it executable
chmod u+x eclipse.desktop
Wen I open the Antapa studio 3 terminal from specific project it notice me an error:
Permission denied to access C:\www\drupal\sites\all. Using default working
directory instead.
Also, I can get to the dir by cd C:\www\drupal\sites\all so it pretty wired..
Is somone handle with this issue, or is smone have any idea?
~ Almog Baku
I have exactly the same problem. You have described it exactly. I found no solution but here's my workaround. First, I want an EXTERNAL terminal window because the Aptana terminal window is too inconvenient for running git and rspec from the command line, so my solution always opens to the current project directory. Also note that I'm on a Mac and my solution is Mac specific.
From the Command menu, I selected Shell Script, and used the "Edit this Bundle" option. After some head scratching, I found that the bundle had been opened as a new project. Then I edited the open_directory_in_terminal.rb file to this:
require 'ruble'
command t(:open_terminal) do |cmd|
cmd.key_binding = 'M2+M4+O'
cmd.output = :output_to_console
cmd.working_directory = :current_project
cmd.invoke do |context|
`open -a Terminal.app "#{ENV['TM_PROJECT_DIRECTORY']}"`
end
end
Basically, all this does is use the Mac OS "open" command to open the Mac terminal app on the current directory. I am sure there are more elegant (and platform independent) ways to do this, but this is what I am using. Hope it gives you some ideas.
FYI, docs on editing the bundle items are here:
https://wiki.appcelerator.org/display/tis/Rubles
this is the first time I ask on stackoverflow because I can't find the answer anywhere. I use emacs to write all my code and I just switched from ubuntu to mac os. One problem has been bothering me: How could you open emacs window from mac terminal just like you would open firefox window from terminal on Linux system? I know the way it works for Linux system is that, whenever you type a command from terminal, the terminal search for the binary in you PATH and execute it. Is it the case for Mac that you can only open applicaiton in window form under "/Application" directory and all binaries opened from terminal are in non-window form? Big thanks!!
The pre-installed Emacs that comes with OS X is built without the GUI. Hence
$ emacs # in the shell/terminal
will NOT open a graphical window, and instead will open up the text/terminal version instead. Note that this version (installed at /usr/bin/emacs) is also old, and is at 22.1.1 in Mountain Lion.
To get the behavior you desire (and also get the latest version of Emacs as a bonus), you can download the latest Emacs build. This is available at various places, including http://emacsforosx.com/.
Most of these pre-built Emacs are installed under /Applications, and in order to invoke from the terminal, you will need to specify the full path to the binary, which usually is:
/Applications/Emacs.app/Contents/MacOS/Emacs
You can create a simple alias to this binary in your .bashrc as:
alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
and then invoke emacs in its full glory from the command line.
I just tried
/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal &
and it did open a new window just fine.
OS X 10.7.4 here.
EDIT: Indeed if I try:
open /Applications/Utilities/Terminal.app
No new terminal window is opened
But,
open --new /Applications/Utilities/Terminal.app
works also, and is probably better than my first option because the job is not tied to the terminal you started the new terminal with.
First, download a Mac OS/X emacs build from here: http://emacsformacosx.com/
Second, once it's installed, you can:
Open it from the command line with open -a emacs
Set it to run server mode in your .emacs init, and then at the
command line type emacsclient foo for file foo.
I'd recommend either getting emacs via fink, or going to here: http://emacsformacosx.com/
This will allow you to install a local version of emacs that runs through the X server, and thus has the full GUI interface.
not sure if u're looking for something like this
open /path/to/some.app
I am interested to know how can I install native assemblar (I think also known as AS) on Mac OSX Lion. Someone suggested that I can use the Xcode to do it but I didn't see any options.Terminal windows is not able to recognize AS as command right now. Can someone provide more insight on this ? I am new to Mac/Unix environment so please provide help accordingly.
If you have Xcode installed, then you have as.There is no option to install specific packages from the Xcode installer.
as should be in /usr/bin/:
ls -l /usr/bin/as
If not, you probably have a problem with your Xcode installation.
Otherwise, also check your PATH environment variable, to ensure /usr/bin/ is in the list.
echo $PATH
If you've installed Xcode 4.3, it doesn't install the command line tools anymore. To get them, you have to launch Xcode, go to Xcode > Preferences... > Downloads tab, then click the 'Download' button for 'Command Line Tools'. You'll need to sign in with an Apple Developer ID.
Using Xcode 4.6 with Command Line Utilities installed
export PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH
as will execute along with the other command line utilities.