0

My attempts to add any alias to .bashrc file is always failing. It comes as not found.

Let me explain what I tried.

I opened the .bashrc using the subl and then at last added the words

alias rm = "rm -i"

Then I went to terminal and ran the .bashrc file using

. ~/.bashrc

Closed and then reopened the terminal.

On opening I get an error message

bash: alias: rm: not found
bash: alias: = rm -i: not found

Praveen Kumar-M
  • 592
  • 5
  • 15

1 Answers1

1

Remove the spaces surrounding the equal sign

alias rm="rm -i"
Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
rr0ss0rr
  • 342