Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, FPGA AI Suite, Software Stack, and Reference Designs
494 Discussions

auto complete on tcsh and bash

ashishkkaul
New Contributor I
2,012 Views

Hi,

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

Ashish

0 Kudos
11 Replies
Hazlina_R_Intel
Moderator
1,991 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


0 Kudos
ashishkkaul
New Contributor I
1,988 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

0 Kudos
Hazlina_R_Intel
Moderator
1,962 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

0 Kudos
Lawrence_L_Intel
Employee
1,959 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

0 Kudos
ashishkkaul
New Contributor I
1,957 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

0 Kudos
Lawrence_L_Intel
Employee
1,950 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

0 Kudos
ashishkkaul
New Contributor I
1,947 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

0 Kudos
Lawrence_L_Intel
Employee
1,941 Views

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

0 Kudos
ashishkkaul
New Contributor I
1,931 Views

I have attached the file env.txt

0 Kudos
Lawrence_L_Intel
Employee
1,928 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.

0 Kudos
ashishkkaul
New Contributor I
1,926 Views

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

0 Kudos
Reply