I'm new at FreeBSD and I'm tinkering with stuff. I have a question about aliases. I read in earlier posts regarding Midnight Commander and the sh shell.
So I installed bash, and I found that typing:
works just fine and MC starts in sh without complaint. I am trying to make an alias so I don't have to type out the env thing, but I can't get the alias work. I put the alias in root's .shrc file. I also tried putting it in /etc/rc.conf. I tried it two ways:
and then with a made-up name:
Yes I did read the man page about 'alias'. I notice it talks about built-in commands. So I'm probably doing it all wrong.
As I said, I'm tinkering and learning. How is one supposed to use the above environment command?
So I installed bash, and I found that typing:
Code:
env SHELL=/usr/local/bin/bash mc
Code:
alias mc='env SHELL=/usr/local/bin/bash mc'
Code:
alias midcom='env SHELL=/usr/local/bin/bash mc
As I said, I'm tinkering and learning. How is one supposed to use the above environment command?