Skip to main content
deleted 13 characters in body; edited tags
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

I am running the latest OpenBSD and I cannot figure out how to set a simple alias, something along the lines of cls=clear. I've tried putting it in ~/.cshrc and in ~/.profile. I've tried: alias cls clear alias cls=clear alias cls='clear' alias cls="clear" Nothing

alias cls clear
alias cls=clear
alias cls='clear'
alias cls="clear"

Nothing works.

On another but perhaps related note: If echo $SHELL tells me I'm using /bin/ksh, why a ~/.cshrc instead of ~/.kshrc?

Any help will be appreciated.

I am running the latest OpenBSD and I cannot figure out how to set a simple alias, something along the lines of cls=clear. I've tried putting it in ~/.cshrc and in ~/.profile. I've tried: alias cls clear alias cls=clear alias cls='clear' alias cls="clear" Nothing works.

On another but perhaps related note: If echo $SHELL tells me I'm using /bin/ksh, why a ~/.cshrc instead of ~/.kshrc?

Any help will be appreciated.

I am running the latest OpenBSD and I cannot figure out how to set a simple alias, something along the lines of cls=clear. I've tried putting it in ~/.cshrc and in ~/.profile. I've tried:

alias cls clear
alias cls=clear
alias cls='clear'
alias cls="clear"

Nothing works.

On another but perhaps related note: If echo $SHELL tells me I'm using /bin/ksh, why a ~/.cshrc instead of ~/.kshrc?

Source Link
slaurel
  • 31
  • 1
  • 2

OpenBSD - How does one set an alias?

I am running the latest OpenBSD and I cannot figure out how to set a simple alias, something along the lines of cls=clear. I've tried putting it in ~/.cshrc and in ~/.profile. I've tried: alias cls clear alias cls=clear alias cls='clear' alias cls="clear" Nothing works.

On another but perhaps related note: If echo $SHELL tells me I'm using /bin/ksh, why a ~/.cshrc instead of ~/.kshrc?

Any help will be appreciated.