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

[FAQ] Domain muncul di auto complete ssh #163

Closed
nafalabi opened this issue Jun 21, 2020 · 6 comments
Closed

[FAQ] Domain muncul di auto complete ssh #163

nafalabi opened this issue Jun 21, 2020 · 6 comments
Labels
question Further information is requested/Informasi lebih lanjut harus dimintakan

Comments

@nafalabi
Copy link

Bagaimana cara supaya domain name di hosts tidak tampil di auto complete ssh

type "ssh " then press "tab"

@ryukora ryukora added the question Further information is requested/Informasi lebih lanjut harus dimintakan label Jun 21, 2020
@ryukora
Copy link
Member

ryukora commented Jun 22, 2020

Bagaimana maksudnya kak?

@nafalabi
Copy link
Author

saya pake bash

@ryukora
Copy link
Member

ryukora commented Jun 29, 2020

@nafalabi apakah sudah bisa kak? tolong respon ya. terima kasih :)

@andraantariksa
Copy link
Collaborator

andraantariksa commented Jun 29, 2020

Silahkan baca https://unix.stackexchange.com/questions/370980/where-does-ssh-pull-autocompletion-from. Itu memang bawaan dari package bash-autocomplete. Dan sepertinya memang harus edit file /usr/share/bash-completion/completions/ssh atau /usr/share/bash-completion/bash_completion buat exclude file hosts.

@ryukora ryukora closed this as completed Jul 1, 2020
@nafalabi
Copy link
Author

nafalabi commented Jul 2, 2020

Terima kasih @andraantariksa
Sudah bisa resolve, saya tambahkan line berikut di .bashrc saya
export COMP_KNOWN_HOSTS_WITH_HOSTFILE="" #don't use /etc/hosts for ssh autocomplete

@ryukora ryukora changed the title [ASK] Domain muncul di auto complete ssh [FAQ] Domain muncul di auto complete ssh Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested/Informasi lebih lanjut harus dimintakan
Projects
None yet
Development

No branches or pull requests

3 participants