Jump to content

can not post to "Bruno's All Things Linux"


crp

Recommended Posts

You must of posted one of the "banned" words that trigger the error message:

[/color]

 

Anytime I need to type those words, I either put them in quotes or use dots: i.e. g.c.c.

 

http://forums.scotsn...showtopic=21483

took out alias and grep . what else could it be? and obviously alias and grep are not problem words. Edited by crp
Link to comment
Share on other sites

securitybreach

And to answer your question, you need to add the alias in ~/.bashrc:

╔═ comhack@Cerberus 03:14 PM

╚═══ ~-> cat .bashrc

# #Check for an interactive session

#alias ls='ls --color=auto'

alias rb='dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot'

alias ya='yaourt -Syua'

export PS1="\n╔═ \[\033[01;32m\]\u@\h \[\033[01;0m\]\@ \n╚═══ \[\033[01;36m\]\w\[\033[01;34m\]->\[\033[00m\] "

export PS2="\[\033[01;34m\]->\[\033[00m\] "

set show-all-if-ambiguous on

export VISUAL="vim"

export EDITOR="vim"

export BROWSER="/usr/bin/google-chrome"

 

The syntax is alias='command'

 

BTW You need the single quotes around the command

Link to comment
Share on other sites

I don't want the alias in the .cshrc, i just wanted it for the active session.

single quote worked, so that is good. How can I do it so the it accepts a command line paramater? using $1 instead of pirate and then trying

grepm pirate

grepm 'pirate'

grepm "pirate"

all resulted in error of grep: pirate: No such file or directory

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...