Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Bash-completion
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Jun 14, 2005 6:13 am    Post subject: Reply with quote

Cosa ti da:

Code:
$ echo $PATH


P.S.: So che è così stupido che avrai già controllato ma è l'unica cosa che mi viene in mente per ora :wink:
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Truzzone
Guru
Guru


Joined: 16 Oct 2003
Posts: 492
Location: Italy

PostPosted: Tue Jun 14, 2005 7:07 am    Post subject: Reply with quote

luna80 wrote:
....CUT...
credo che la cosa non funzioni più dopo un qualche etc-update, possibile?


Può essere che con l'ultimo baselayout uscito sia stato modificato qualcosa per sbaglio, controlla il file .bashrc nella tua home, deve avere l'ultima riga decommentata. :wink:

Ciao by Truzzone :)
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Jun 14, 2005 7:53 am    Post subject: Reply with quote

ho lo stesso problema di luna80... e ho "risolto" mettendo tutto in /usr/bin...
comunque da:
Code:
thorium fctk # echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin

vedo che /usr/local/bin non c'è... eventualmente come posso aggiungerlo?
inoltre:
Code:
*  sys-apps/baselayout
      Latest version available: 1.11.12-r4
      Latest version installed: 1.11.12-r4
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Jun 14, 2005 8:18 am    Post subject: Reply with quote

@gutter: infatti hai fatto bene a ricordarmelo....mi sono dimenticata di controllare: stasera faccio, grazie mille

@Truzzone: infatti pensavo proprio al nuovo baselayout, la riga in bashrc l'ho controllata ed era giustamente ancora scommentata

@fctk: non vorrei dire una cavolata ma penso che dobbiamo dare

Code:
#export PATH=$PATH:/usr/local/bin


forse però è meglio che aspettiamo la conferma di qualcun'altro
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Jun 14, 2005 6:46 pm    Post subject: Reply with quote

ho risolto con il comando

Code:
#export PATH="$PATH:/usr/local/bin"




(in ogni caso chi mi ha tolto quel path dalla variabile? una volta funzionava, sarà davvero il nuovo baselayout? e se ne fossero stati tolti altri (di cui adesso non mi sono ancora accorta?))

in ogni caso, come sempre, grazie a tutti
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Jun 14, 2005 8:04 pm    Post subject: Reply with quote

mmh... c'è una contraddizione tra il contenuto di /etc/profile:
Code:
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
   PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi

e:
Code:
thorium ~ # echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin

magari non c'entra nulla... boh.

@luna80:
ma quel comando è permanente? cioè, se riavvio le modifiche rimangono? se sì, dove vengono salvate?
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Tue Jun 14, 2005 10:02 pm    Post subject: Re: [TIP] Bash-completion Reply with quote

paolo wrote:

In pratica è uno script (in bash!) che potenzia la completion che già ha la bash e cioè quella feature che vi permette di "completare" la digitazione di un nome file semplicemente premendo il tasto TAB.


thanks... mi mancava.. :wink:
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Wed Jun 15, 2005 4:03 am    Post subject: Reply with quote

fctk wrote:
mmh... c'è una contraddizione tra il contenuto di /etc/profile:
Code:
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
   PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi

e:
Code:
thorium ~ # echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin

magari non c'entra nulla... boh.

@luna80:
ma quel comando è permanente? cioè, se riavvio le modifiche rimangono? se sì, dove vengono salvate?


no, così facendo non viene mantenuta la modifica,...per farla mantenere devi editare il file /etc/profile (oppure .bashrc)

per quanto hai scritto prima, non capisco neppure io, posso dirti soltanto che c'entra anche il file /etc/profile.env


magari qualcuno ci può chiarire le idea,...grazie :-)
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Aug 09, 2005 8:07 pm    Post subject: Reply with quote

ho appena aggiornato l'howto su gentoo-wiki: http://gentoo-wiki.com/TIP_TAB-completion 8)
Back to top
View user's profile Send private message
thewally
l33t
l33t


Joined: 12 May 2005
Posts: 703
Location: Genova

PostPosted: Tue Aug 09, 2005 8:15 pm    Post subject: Reply with quote

fctk wrote:
ho appena aggiornato l'howto su gentoo-wiki: http://gentoo-wiki.com/TIP_TAB-completion 8)


Proprio quello che mi serviva... grazie :D
Back to top
View user's profile Send private message
Apetrini
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1158

PostPosted: Thu Aug 11, 2005 1:40 am    Post subject: Reply with quote

Ottimo...
è la prima volta che provo questo software e devo dire che è parecchio utile...
l'installazione non mi ha dato nessun problema...

Ora volevo fare una domanda, ma voi non ditemi che sono il solito esagerato...

Un mio amico mi ha parlato che su windows esiste un utility che permette di memorizzare alcune combinazioni di caratteri e di abbinare a queste frasi o discorsi...
Esempio potrei bindare "/me" con il mio nick oppure "/saluto1" con la mia firma piu il nome e cognome, oppure "/Inizia" che mette la data il luogo e comincia con Caro....
sarebbe bello se anche su Linux esistesse una cosa del genere.

Qualcuno sa qualcosa?
_________________
Linux ape 2.6.31-vanilla. Paludis since 0.28.0.
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Thu Aug 11, 2005 5:47 am    Post subject: Reply with quote

Esiste sempre alias (che funziona anche con i comandi), ma non so se va con i caratteri /
Code:

$ alias me="mouser"
$ alias scrivi="echo"
$ scrivi me
mouser
$


Ciriciao
mouser :wink:
Back to top
View user's profile Send private message
Apetrini
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1158

PostPosted: Thu Aug 11, 2005 12:46 pm    Post subject: Reply with quote

Si, ma non mi serve per la shell, mi serve qualcosa per X.
Cosi posso usarlo qaundo vado nei forum o quando scrivo lettere e/o e-mail...
_________________
Linux ape 2.6.31-vanilla. Paludis since 0.28.0.
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Thu Aug 11, 2005 2:29 pm    Post subject: Reply with quote

Una cosa simile l'ho vista su applicativi specifici [client IM o IRC] ma non per l'intero X
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum