trentm / go-tool

Automatically exported from code.google.com/p/go-tool
Other
10 stars 8 forks source link

Support for ZSH #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Go does not seem to recognise ZSH as a shell.

To work around this, I had to change:

    $ vim /usr/lib/python2.6/site-packages/go.py

    363         if "/bash" in shell_path or "/sh" in shell_path or shell_path == 'zsh':

Running:

    $ python -m go

then prompted me to paste the function in my ~/.bashrc file, but ZSH uses  
~/.zshrc instead. Simply appending the function to the bottom of the file did 
the trick.

Original issue reported on code.google.com by insa...@gmail.com on 23 Jul 2010 at 9:42

GoogleCodeExporter commented 9 years ago
Fully implemented this (including the prompting behavior) in my fork,
https://github.com/srid/go-tool/commit/6c703dbd3c6c07ad843865c5f37560702c3e34ae

It also supports oh-my-zsh!

Original comment by Sridhar....@gmail.com on 27 Jul 2011 at 12:20