0

I'm trying set up a simple bash alias:

alias b="bundle"

when I look at the alias in bash I get:

alias b='"bundle"'

which makes a mess of following aliases.

I think this is due to it pointing to the rbenv shim bundle in $PATH but I could be wrong.

Any pointers for this?

kutikina
  • 3
  • 1

1 Answers1

-1

You can look at

~/.bashrc

and correct it...

try to define it like(in terminal or ~/bashrc):

alias b='bundle'

Also have look HERE1 and HERE2 and HERE3

Community
  • 1
  • 1
MLSC
  • 5,872
  • 8
  • 55
  • 89
  • thanks for the ideas. It is correctly defined in ~/.bashrc: alias b='bundle' shows up as alias b=' 'bundle' ' in terminal, I still can't see why the extra ' are showing up. So b="bundle" in ~/.bashrc looks like b=" 'bundle' " in terminal (added extra spaces for clarity). – kutikina Mar 09 '14 at 06:53
  • also `alias b="bundle"` is correct... Really I don't know..so strange...try this one `alias b=bundle` – MLSC Mar 09 '14 at 06:57
  • alias b=bundle looks like b='bundle' in terminal which is fine. However I want to define bu='bundle update' and this turns out as: bu=' 'bundle' ' update' in terminal and fails (of course). – kutikina Mar 09 '14 at 06:59
  • how about : `alias bu=bundle\ \update` or `alias bu=bundle\ update` – MLSC Mar 09 '14 at 07:02
  • I think the main problem is about your bash on terminal configurations...It is manipulated... try to solve it...(if you get answer don't forget to tick) – MLSC Mar 09 '14 at 07:04
  • 1
    Yes. Escaping them seems to work, I can solve it this way, but it's odd. Thanks for the help. – kutikina Mar 09 '14 at 07:06