Yarp autocomplete support #15
-
Hi everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 1 reply
-
Not sure if there is any documentation about... anyway: cp $YARP_ROOT/scripts/yarp_completion /etc/bash_completion.d/yarp Feel free to add it somewhere in the documentation :) |
Beta Was this translation helpful? Give feedback.
-
Super cool, thanks! |
Beta Was this translation helpful? Give feedback.
-
@traversaro Actually ln -s $YARP_ROOT/scripts/yarp_completion /etc/bash_completion.d/yarp Is probably a better option, so that when the file is updated, you don't have to copy it again. @francesco-romano does it work on OSX too? I just checked and at the moment it does not work out of the box on cygwin, but it works if you run (set -o igncr) 2>/dev/null && set -o igncr; See also https://stackoverflow.com/questions/11616835/cygwin-r-command-not-found-bashrc-bash-profile |
Beta Was this translation helpful? Give feedback.
-
The page http://wiki.icub.org/wiki/Generic_iCub_machine_installation_instructions suggests to add the tab completion script to your .bashrc (or similar file):
|
Beta Was this translation helpful? Give feedback.
-
On OS X, the autocompletion does not work, as I get
(it is in line 42) |
Beta Was this translation helpful? Give feedback.
-
@kt10aan Is bash-completion installed? See http://www.linuxask.com/questions/install-bash-completion-for-mac-osx |
Beta Was this translation helpful? Give feedback.
-
I have no problems in using auto completion on OS X
|
Beta Was this translation helpful? Give feedback.
-
@drdanz , indeed, Now there are two ways to continue, one is to source the $YARP_ROOT/scripts/yarp_completion in .bash_profile and the other to link the yarp_completion to Both work on my machine, but the first one is a bit cleaner, at least for me that I install YARP from sources. However, it would be nice to have the YARP formula to install the yarp_completion in |
Beta Was this translation helpful? Give feedback.
-
I have added the instructions for OS X in http://wiki.icub.org/wiki/Homebrew#Bash_completion. |
Beta Was this translation helpful? Give feedback.
-
For sake of completeness on the auto-complete feature :), also Windows machines can have it enabled. @elen4 provided some time ago a way to it along with documentation under |
Beta Was this translation helpful? Give feedback.
-
I see that in the installation from sources edit ( http://wiki.icub.org/index.php?title=Linux:Installation_from_sources&diff=prev&oldid=20987 ) the suggestion is to use the cp command. I think it would be better to add the suggestion from @drdanz of using the ln: ln -s $YARP_ROOT/scripts/yarp_completion /etc/bash_completion.d/yarp |
Beta Was this translation helpful? Give feedback.
-
@fjandrad However, it got then deleted and replaced with a link (http://wiki.icub.org/index.php?title=Linux:Installation_from_sources&diff=21167&oldid=21077) to http://www.yarp.it/install_yarp_linux.html. Indeed, in this page the bash auto complete is missing. |
Beta Was this translation helpful? Give feedback.
-
The relevant file for that tutorial is in https://github.com/robotology/yarp/blob/45e06ce13f076efce166711841ab130a04b17d4b/doc/installation/install_linux.dox , so feel free to add the tab completion instructions with a PR. @fjandrad |
Beta Was this translation helpful? Give feedback.
-
You should have received an invitation to join our developers' group. |
Beta Was this translation helpful? Give feedback.
-
cc @S-Dafarra |
Beta Was this translation helpful? Give feedback.
-
cc @aikolina |
Beta Was this translation helpful? Give feedback.
-
cc @robotology/iit-dynamic-interaction-control |
Beta Was this translation helpful? Give feedback.
-
I think that the path changed, see https://github.com/robotology/yarp/tree/7098ab6219647603f96764cc0a7cd33a950bbfa6/data/bash-completion Now the command would be
Note:
|
Beta Was this translation helpful? Give feedback.
Not sure if there is any documentation about... anyway:
cp $YARP_ROOT/scripts/yarp_completion /etc/bash_completion.d/yarp
Feel free to add it somewhere in the documentation :)