|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Shell aliases for regular user
Happy Holidays Everyone:
Been messing with this with no success (this is after many Google searches and man page reviews). Want to set up a simple alias such as dot = 'ls -a |grep "^\." ' I tried it in .cshrc and .profile in users home directory but when I type dot I get the following: ksh: dot: not found Thanks for any help or suggestions. Darryl |
|
||||
Quote:
Type man ksh to see which files are read at Your shell startup and put there that alias.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|||
Vermaden, the OpenBSD ksh also uses .profile
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
Aliases in the bourne shells are different, you'll need to add an equals sign:
Code:
alias dot='ls -a |grep ^\\.'
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Thanks folks, got the aliases working
Added the following to ~/.profile
alias dot='ls -a |grep "^\."' alias dir='ls -l |grep "^d"' And they worked perfect. Thanks again, Darryl |
Tags |
shell aliases |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running a command as a different user w/o starting the login shell | Carpetsmoker | General software and network | 4 | 1st July 2011 10:33 PM |
postfix aliases configuration error | xiphias | FreeBSD Ports and Packages | 5 | 5th June 2010 05:35 PM |
PHP regular expression help | cajunman4life | Programming | 2 | 16th August 2008 05:17 PM |
Mount filesystem with a regular user | ivanatora | FreeBSD General | 15 | 30th July 2008 08:51 AM |
are you an former bsdforum regular? | ephemera | Off-Topic | 18 | 28th July 2008 12:57 PM |