Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, DLA, Software Stack, and Reference Designs
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
446 Discussions

auto complete on tcsh and bash

ashishkkaul
New Contributor I
1,034 Views

Hi,

Could we get auto complete installed on the bash and tcsh shells?

Ashish

0 Kudos
11 Replies
Hazlina_R_Intel
Moderator
1,013 Views

Hi,

Can you let me know which Intel FPGA platform that you are referring to?

And what do you mean by "getting auto complete"?


-Hazlina


ashishkkaul
New Contributor I
1,010 Views

For example, when you are try to change directories, you can type 'cd' and then use TAB to find files or complete the full name of file or dir after typing first few letters. That is what I mean by auto completion.

It is not working on the bash shell.

Ashish

Hazlina_R_Intel
Moderator
984 Views

Noted.

I will have to defer this to the platform expert @Lawrence_L_Intel  - Can you please look into this issue on the Dev Cloud platform? 

-Hazlina

Lawrence_L_Intel
Employee
981 Views

Hmm, my bash with a single or double tab works fine for me. There is an article here about bash autocomplete that might help. I've never had to set anything special, it just worked out of the box.

https://www.cyberciti.biz/faq/add-bash-auto-completion-in-ubuntu-linux/

regards

Larry

ashishkkaul
New Contributor I
979 Views

Larry,

We are not allowed to run sudo and for me /etc/profile.d/bash_completion.sh does not exist.

============

Dear User,

this server does not allow you to run "sudo".

If you need to install a dependency, please put it in your home directory.
* For autotools, you can do it with "./configure --prefix=~/my-path"
* For Python packages, use "pip install <package_name> --user" or create a Conda environment.

Sincerely,
Admins

===========

cat /etc/profile.d/bash_completion.sh
cat: /etc/profile.d/bash_completion.sh: No such file or directory

Lawrence_L_Intel
Employee
972 Views

 I have never seen this one before.  What machine are you on? Perhaps you can save your various dot files .bashrc, .profile etc and copy the defaults from /etc/skel. Let me know if that  works. Thanks

ashishkkaul
New Contributor I
969 Views

This happens on X2GOClient. I am on machine s001-n189. It does not happen when I use a standalone terminal from XQuartz from example.

But there is no /etc/profile.d/bash_completion.sh in either case.

Ashish

Lawrence_L_Intel
Employee
963 Views

I tried x2go s001-n137 and its ok and autocompletes with X2go. can you type env > env.txt and send that file?

ashishkkaul
New Contributor I
953 Views

I have attached the file env.txt

Lawrence_L_Intel
Employee
950 Views

thanks for attaching ... the only thing that jumps out at me is SHLVL=6. that means you are 6 levels deep - perhaps try exiting out to SHLVL=1 . however that is just a guess I'll have to research more.

ashishkkaul
New Contributor I
948 Views

SHLVL=6 is what I get when I open a terminal on my x2goclient desktop.

Reply