View previous topic :: View next topic |
Author |
Message |
Truzzone Guru


Joined: 16 Oct 2003 Posts: 492 Location: Italy
|
Posted: Wed Jan 24, 2007 6:42 pm Post subject: Bash Completion on ssh and putty all'avvio della sezione |
|
|
Ciao a Tutti
è da un bel pò che non mi faccio sentire causa lavoro quindi poco/niente tempo libero a disposizione
Ho la necessità di usare putty via ssh per i vari server gentoo che ho in giro solamente che non ho abilitato in automatico "l'autocompletamento" che trovo utilissimo.
Ho emerso i vari bash-completion, eselect ....
Ho impostato nella home il .bashrc che ha solamente questa riga:
Code: | [[ -f /etc/profile.d/bash-completion ]] && source /etc/profile.d/bash-completion |
ma per averla abilitata devo ogni volta entrato dare un:
Code: | source /etc/profile.d/bash-completion |
e dopo funziona.
Non credo sia putty il problema in quanto funziona dopo aver lanciato a mano il source.
C'è qualche opzione nella config di sshd per far sì che all'avvio della sezione carichi il .bashrc?
Truzzone  |
|
Back to top |
|
 |
gutter Bodhisattva


Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Wed Jan 24, 2007 7:01 pm Post subject: |
|
|
Code: |
gutter@giskard ~ $ cat .bash_profile
# /etc/skel/.bash_profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bash_profile,v 1.10 2002/11/18 19:39:22 azarah Exp $
#This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc
|
_________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
 |
Truzzone Guru


Joined: 16 Oct 2003 Posts: 492 Location: Italy
|
Posted: Wed Jan 24, 2007 7:11 pm Post subject: |
|
|
Mitico !
Grazie mille ma scusa come mai non era scritto nell' emessage quando ho emerso la bash-completion insieme alla riga da aggiungere a .bashrc?
Grazie ancora
Truzzone  |
|
Back to top |
|
 |
gutter Bodhisattva


Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Thu Jan 25, 2007 4:49 pm Post subject: |
|
|
Ti serve il .bash_profile per una shell interattiva. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
 |
|