Bash-Completion, installed but not applied


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Bash-Completion, installed but not applied
# 1  
Old 09-30-2015
Bash-Completion, installed but not applied

Heyas

For my project TUI i had prepared bash completion.
Bash-completion works, at least if i source that file manualy.

However, when i'm installing it, it wont apply, not even for new opened terminals.
Allthough i had it working once, i dont get why it doesnt work now.

Code:
<...>
+ '[' '!' -d //share/bash-completion ']'
+ '[' -d //share/bash-completion/completions ']'
+ cp -a /home/sea/prjs/tui/compl/tui_compl.bash /share/bash-completion/completions
+ '[' 0 -eq 0 ']'
+ chown 0:0 //share/bash-completion/completions/tui_compl.bash
<...>

0 $ ll /share/bash-completion/completions/tar
-rw-r--r-- 1 root root 4.1K 23. Apr 2014  /share/bash-completion/completions/tar
0 $ ll /share/bash-completion/completions/tui_compl.bash 
-rw-r--r-- 1 root root 21K 29. Sep 20:29 /share/bash-completion/completions/tui_compl.bash
## This last is in the prj dir
0 $ ll compl/tui_compl.bash 
-rw-r--r-- 1 sea sea 21K 29. Sep 20:29 compl/tui_compl.bash

At first, the file was owned by me as user and didnt work, so i thought the issue was the user, so i've chowned it as root, to no help.
Also, there are tons of other files in the target folder where the script is copied to, so it must be at the right place.
But what am i missing?

Any ideas?
Thank you in advance

---------- Post updated at 17:11 ---------- Previous update was at 16:15 ----------

Also, removing "_compl.bash" has no effect.
It has the same permissions as the other scripts too.

So, in other words:
I wonder why the other bash completion scripts work, but mine not by placing it in that same folder?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies

2. UNIX for Advanced & Expert Users

Bash-Completion, one list shown, the other not.

Heyas I'm trying to read out a file which contains a variable and use that list to complete a bash command. Difficult part on this is, that 2 (actualy 3) different lists are to be used, but the 'dynamic' ones from the external file dont work properly. It only seems to work with the list... (2 Replies)
Discussion started by: sea
2 Replies

3. Shell Programming and Scripting

Bash-Completion, an example

Hello I've followed several bash-completion threads, usualy none were answered, because of obvious reasons. (of which i'm just aware since a day or a few) Non-the-less, because i was writing scripts, i never considered it to be possible to add this functionality. Also, because i though that... (0 Replies)
Discussion started by: sea
0 Replies

4. UNIX for Dummies Questions & Answers

Bash-completion on shell script

Hello I want use bash_completion on a script but the information on the internet give me not a solution. The scrip start with "cd" to a direction Than the script do "ls" Than I must give a name of a sub-direction and here I want to use <TAB>, so when I have a direction with the name smith... (2 Replies)
Discussion started by: thailand
2 Replies

5. UNIX for Dummies Questions & Answers

Bash Tab Completion Hanging

Hi, I'm having a problem with tab completion at the bash command line. For some reason, whenever I type g<tab>, the terminal will freeze up for 5-10 seconds before asking me if I want to display all 325 possibilities. I thought that maybe it's because of the high number of commands, but I have... (4 Replies)
Discussion started by: Raz716
4 Replies

6. Shell Programming and Scripting

Programmable completion for two arguments in bash

Hi there! I have this script which handles bookmarks. Bookmarks are basically a string that point to a certain path, e.g., project -> ~/code/projects/project. Currently I have working completion for the bookmarks: ~ $ m p<Tab> ~ $ m project What I want to implement now is the cd... (0 Replies)
Discussion started by: KevinSjoberg
0 Replies

7. Shell Programming and Scripting

configure bash completion for multiple possibilities

Hello, Bash completion is great, but there are some features I'd like to change. One thing is the behaviour when there are lots of very similar possibilities. E.g., my directory contains 133 files, from pubmed_result1.txt to pubmed_result133.txt $ ls Lyonprim/p Display all 133... (2 Replies)
Discussion started by: jossojjos
2 Replies

8. Shell Programming and Scripting

bash completion

hello, I have been trying for a couple days to figure this out to no avail. I am converting some csh code to bash. I have converted everything except the completion code. #bashrc (I set this alias in my bashrc) alias test='source ${PATH}/test.sh' #${PATH}/test.sh (returns some aliases and... (0 Replies)
Discussion started by: platypuus
0 Replies

9. Shell Programming and Scripting

[tcsh2bash] Tab completion - 'enhanced' equivalent in bash?

I really like tcsh's: set completion='enhanced' because it treats underscores and dash signs the same. I don't have to reach for the shift key when trying to complete files that have underscores. As far as I know, there is nothing like this in bash. Does such a thing exist in bash? If... (2 Replies)
Discussion started by: sarnobat
2 Replies
Login or Register to Ask a Question