I managed to compile the latest command line version of G’mic under linux and it works, but I don’t have the completion feature (you know, you press TAB and it finishes the word).
I tried : make bashcompletion
But it failed : Makefile:687 : la recette pour la cible « bashcompletion » a échouée make: *** [bashcompletion] Erreur 255
bash --version GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
sudo apt install bash-completion
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances
Lecture des informations d’état… Fait
bash-completion est déjà la version la plus récente (1:2.1-4.2ubuntu1.1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 2 non mis à jour.
If I don’t specifically source gmic_bashcompletion.sh, the completion doesn’t work for G’mic.
Any idea how to modify the current bash completion script to make it work for you ?
As I can’t reproduce the issue here, it’s really hard for me to fix it.
Well, with 2 lines commented like said earlier, it works:
It is almost perfect, it just keep the color modification for my shell. So if the G’mic message finishes in green, what I am going to type in my shell then is green.
By the way, if there are MacOS gmic cli users interested in completion.
Since some time Apple recommends or switches automatically to zsh, not to bash.
Under zsh the (bash) completion for gmic cli works too! You have to add some lines in the zsh configuration file, often .zshrc: