Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: 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.
-
http://www.abclinuxu.cz/clanky/bash-prompt
-
ad 1
Do ~/.inputrc se dáset show-all-if-ambiguous on
ad 2
http://www.linuxsoft.cz/article.php?id_article=748
-
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
-
Jeste dotaz aby se dostavily zmeny musi resetovar pocitac?
-
1] Prvni problem jsem uz vyresil konfiguracni soubor je /etc/inputrc
ale s tim druhym nehnu :(
-
/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)
-
/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:
> echo $HOME
/var/tmp/home/dpecka
ale obecne vzato je to spravne ...
@jarda33
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.
-
Diky moc uz je vse jak ma byt.