SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Community,
I am working with slack 12.2 and I want to ask I must make to create the script and after a change the permissions for execution by pressing the first letter me and tab auto complete script that generates, in addition and installed some programs and I have to enter the address where the complete script, and not carried out auto search script with this first letter and tab.
On the other hand you want to generate a script and wants to so anyone know where I wish to place him, through community.
I'm not sure that anyone will be able to figure out what it is exactly that you are asking.
I understand English is not your first language, and that's ok but please try to re-write your question in more simple terms. If possible, break it down into two questions.
Take your time, and re-read your question before posting to make sure it is what you want to ask. We'll then do our best to try and help you out!
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Hi mfduqued. If I understand it you want to have tab completion complete the name of a script of yours and then have it run. You also ask where to put it.
There are two things in question here. Firstly - to make a script (or program or something) executable do the following :
Code:
chmod +x myscript
It will then be executable and Bash will tab complete if it can find it. This means that the script should be in the current path. Find this out with :
Code:
echo $PATH
Moving the script to a directory in the path will make Bash tab complete for you. So moving this,( for example ), to /usr/local/bin and hitting tab "my" will tab complete mycript. This all depends on the setting of your PATH obviously.
Sorry for jumping in before you had chance to explain in better English but I thought I understood what you meant. Hope I was right !
I'm not sure that anyone will be able to figure out what it is exactly that you are asking.
I understand English is not your first language, and that's ok but please try to re-write your question in more simple terms. If possible, break it down into two questions.
Take your time, and re-read your question before posting to make sure it is what you want to ask. We'll then do our best to try and help you out!
Sasha
I am sorry for my English, Sasha my questions are:
1> How to I can change my path for that,
scripts at the sub directories in /usr/local
can to be auto complete when I write first letter.
2> How to I can change my path for that,
scripts at my home can to be auto complete when I write first letter and not write ./
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.