Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No autocomplete of commands on fresh install #727

Closed
ayoungethan opened this issue May 5, 2023 · 8 comments
Closed

No autocomplete of commands on fresh install #727

ayoungethan opened this issue May 5, 2023 · 8 comments
Labels
Status: Out of Scope Not solvable within the scope of this code base

Comments

@ayoungethan
Copy link

What Happened?

Upon fresh install of Elementary OS 7.0 upgrading from 6.1, the terminal has only basic functionality. All commands seem to work, but autocomplete does not. Also, the terminal used to have the command prompt color-coded. It is not color-coded, but the same color as all the input text (see attached screenshot)
Screenshot from 2023-05-05 15 46 43

Steps to Reproduce

  1. Installed Elementary OS 7
  2. Launched terminal
  3. Tried to use tab key for terminal autocomplete
  4. Either nothing happens, or the output offers only directory autocomplete options
  5. Tried uninstalling and reinstalling app via AppCenter
  6. AppCenter does not successfully uninstall terminal
  7. Uninstalled via command line: sudo apt purge io.elementary.terminal
  8. Reinstalled app
  9. Same behavior
  10. Installed a different terminal emulator, which behaves as expected (tabbed autocomplete works for commands)

Expected Behavior

I expect the terminal to offer tabbed autocomplete. Tabbed autocomplete doesn't work for commands, only for directories (see attached screenshot)
Screenshot from 2023-05-05 15 53 18

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@jeremypw jeremypw changed the title No autocomplete on fresh install No autocomplete of commands on fresh install May 10, 2023
@jeremypw
Copy link
Collaborator

I've just done a fresh install of Elementary 7.0 from the most recent stable ISO and I do not experience this problem. Both paths and commands complete as expected. This is with the UK locale and keyboard (and bash shell)

@ayoungethan
Copy link
Author

ayoungethan commented May 10, 2023 via email

@jeremypw
Copy link
Collaborator

jeremypw commented May 10, 2023

Strange. I do not think this is a Terminal app problem though - autocompletion is handled by the underlying shell (bash).

According to https://linuxhandbook.com/enable-tab-completion/, a possible fix is to run the command sudo apt install bash-completion

However, that package extends the basic functionality not provides it. I do not have it installed and I do not experience the problem.

You could try reinstalling the bash package. sudo apt reinstall bash

@Marukesu
Copy link
Contributor

This is definitively a shell issue, i see from the second image that you are missing a .bashrc file in the home directory, that file is where tab-completion (and the coloured prompt) is enabled by default.

@ayoungethan
Copy link
Author

ayoungethan commented May 10, 2023 via email

@Marukesu
Copy link
Contributor

for the .bashrc, .inputrc, .profile and .bash_logout files, it's actually depend on the contents, it's should be fine to copy from the backup if they are in the default state. i can't say much about the .dbus folder thought.

@jeremypw
Copy link
Collaborator

I am going to close this as an Terminal issue but you can continue to discuss here if necessary as the issue continues to exist.

@jeremypw jeremypw added the Status: Out of Scope Not solvable within the scope of this code base label May 11, 2023
@ayoungethan
Copy link
Author

To be safe, I created a new temporary admin account, copied the missing files and reset ownership to each user. Behavior is now as expected. Not sure why those files were never created in the first place upon initial user account creation!

The new temporary admin account I copied files from also did not have a .dbus folder so I am ignoring that for now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Out of Scope Not solvable within the scope of this code base
Projects
None yet
Development

No branches or pull requests

3 participants