Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: jarda33 03 Října 2011, 20:31:25

Název: Nastaveni Bashe
Přispěvatel: jarda33 03 Října 2011, 20:31:25
Trochu mi vadi, ze kdyz pisu v bashi prokaz napr: cd /home/user/Sta a mam dve slozky zacinajici na Sta a zmazknu TAB, tak se nic nedeje a az po druhem zmacknuti tab mi vyskoci moznosti slozek.

Dale bych chtel prenastavit aby se mi porad v konzoli nezobrazoval aktualni adresar za nazvem pocitace.

Prosim nevite jak to prenastavit u jinych distribuci je to automaticky prednastaveno. Diky.
Název: Re:Nastaveni Bashe
Přispěvatel: Martin Kiklhorn 03 Října 2011, 21:06:08
http://www.abclinuxu.cz/clanky/bash-prompt
Název: Re:Nastaveni Bashe
Přispěvatel: daysleeper 03 Října 2011, 21:16:33
ad 1
Do ~/.inputrc se dá
Kód: [Vybrat]
set show-all-if-ambiguous on

ad 2
http://www.linuxsoft.cz/article.php?id_article=748
Název: Re:Nastaveni Bashe
Přispěvatel: jarda33 03 Října 2011, 23:18:36
Bohuzel nemuzu najit soubory ~/.inputrc a ~/.bashrc. hledam je v korenovem adresari a to prikazem ls -A ale nic takovyho nemam. Mam Kubuntu 11.04 64bit
Název: Re:Nastaveni Bashe
Přispěvatel: jarda33 03 Října 2011, 23:34:22
Jeste dotaz aby se dostavily zmeny musi resetovar pocitac?
Název: Re:Nastaveni Bashe
Přispěvatel: jarda33 03 Října 2011, 23:50:17
1] Prvni problem jsem uz vyresil konfiguracni soubor je /etc/inputrc

ale s tim druhym nehnu :(
Název: Re:Nastaveni Bashe
Přispěvatel: Martin Kiklhorn 04 Října 2011, 00:00:41
/etc/inputrc je globální, pro uživatele je opravdu ~/.inputrc
On si systém tu tildu (vlnovku) přeloží správně (viz můj podpis)
Název: Re:Nastaveni Bashe
Přispěvatel: ntz_reloaded 04 Října 2011, 09:59:18
/etc/inputrc je globální, pro uživatele je opravdu ~/.inputrc
On si systém tu tildu (vlnovku) přeloží správně (viz můj podpis)
no, neplati to vzdy:

Kód: [Vybrat]
> echo $HOME
/var/tmp/home/dpecka

ale obecne vzato je to spravne ...

@jarda33
Citace: man bash
       When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads  and  executes  commands
       from  the  file  /etc/profile, if that file exists.  After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that
       order, and reads and executes commands from the first one that exists and is readable.  The --noprofile option may  be  used  when  the  shell  is
       started to inhibit this behavior.

       When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists.

       When  an  interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc then ~/.bashrc when those
       files exist and are readable. This may be inhibited by using the --norc option.  The --rcfile file option will force bash to read and execute com-
       mands from file instead of ~/.bashrc.
Název: Re:Nastaveni Bashe
Přispěvatel: jarda33 04 Října 2011, 16:20:13
Diky moc uz je vse jak ma byt.