Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Selbst definierte Aliase - stören Betrieb?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Wed Oct 11, 2006 6:16 am    Post subject: [Solved] Selbst definierte Aliase - stören Betrieb? Reply with quote

Hi!

Ich hab
Code:
alias cp='cp -g'
alias ls='ls --color -oa'
alias mv='mv -g'
alias find='find -follow'
alias grep='grep -i --color --'
alias locate='locate -i'
alias nano='nano -w'
alias konsole='konsole --schema Transparent_darkbg.schema'
PS1="\[\033[0;36m\][\t]\[\033[1;34m\]|\[\033[0;32m\][\u\[\033[1;34m\]@\[\033[0;32m\]\h]\[\033[1;34m\]|\[\033[1;33m\]\w\[\033[0m\]\[\033[1;34m\]$\[\033[0m\]"
alias mplayer='mplayer -nolirc -softvol -vo gl

in der /etc/bash/bashrc

Code:
xdpyinfo | grep -q -i NV-GLX
grep: -i: No such file or directory
grep: NV-GLX: No such file or directory


Also ein Aufruf ohne absolute Angabe des Pfades killt die Abfrage.

So. Nun meine Frage.
Das ist jetzt nen Beispiel aus Beryl, was gestartet wird, wenn KDE hochfährt.
Arbeitet der dann schon mit der bashrc?

Wenn ja. Wie kann ich das verhindern, dass Kommandos, die nicht von mir eingetippt worden sind, die Aliase verwenden?


Danke

Tobi


Last edited by Finswimmer on Wed Oct 11, 2006 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Wed Oct 11, 2006 8:34 am    Post subject: Reply with quote

Das liegt an deinem vermurksten alias:

Code:
alias grep='grep -i --color --'


Das "--" am Ende bedeutet das alles weitere keine Option mehr ist. Und das geht dann natürlich in die Hose. Also einfach das " --" am Ende rausschmeissen und es sollte gehen.

Der Rest sieht ganz OK aus.
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Wed Oct 11, 2006 9:42 am    Post subject: Reply with quote

Danke, danke :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
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