csh "doskey" possible?

csh "doskey" possible?

Post by Shawn D. McPe » Sat, 03 Feb 1996 04:00:00



: Is it possible to make a csh behave a bit like DOSKEY, i.e. moving through
: a history file with the cursor keys and editing the command line with the
: cursor keys?

You could look into tcsh.

 
 
 

csh "doskey" possible?

Post by Thomas Ada » Sat, 03 Feb 1996 04:00:00


Is it possible to make a csh behave a bit like DOSKEY, i.e. moving through
a history file with the cursor keys and editing the command line with the
cursor keys?

Thanks for any help.

 
 
 

csh "doskey" possible?

Post by Sally Woolric » Sun, 04 Feb 1996 04:00:00





> : Is it possible to make a csh behave a bit like DOSKEY, i.e. moving through
> : a history file with the cursor keys and editing the command line with the
> : cursor keys?

> You could look into tcsh.

Or convert to Korn shell!

--
============================================================================
Sally Woolrich                    |          This mail contains my personal

============================================================================

 
 
 

csh "doskey" possible?

Post by Kevin MacNei » Mon, 05 Feb 1996 04:00:00




>: Is it possible to make a csh behave a bit like DOSKEY, i.e. moving
>: through a history file with the cursor keys and editing the command line
>: with the cursor keys?
>You could look into tcsh.

For the benefit of those users who can't convince their sysadmins to add
tcsh:  you can always use mced, a small binary that allows full arrow-key
editing of the history file.  It's a little more cumbersome than doskey
because you have to activate it with an alias, usually "=", but overall it's
the best solution to the problem that I've seen.

Anyway, it's probably a sin to do this, but mced is freeware and the source
is only 11k uuencoded, so I'm just going to post it.  It's easy to compile
and it comes with a manpage that explains how to set up the alias.  Also, I
know there are people out there who'll find it extremely useful.

begin 600 mced.tar.gz
<uuencoded_portion_removed>

end

 
 
 

csh "doskey" possible?

Post by Eric Mar » Tue, 06 Feb 1996 04:00:00


: Is it possible to make a csh behave a bit like DOSKEY, i.e. moving through
: a history file with the cursor keys and editing the command line with the
: cursor keys?

tcsh does this automatically.

: Thanks for any help.

--
dMMMMMP dMMMMMb  dMMMMMP  -[T]-     WWW: http://www.io.org/~diehl/
 dMP   dMP  dMP dMP       -[O]-         Sinclair Spectrum Page:
dMP   dMMMMMMP dMMMMMP    -[C]-  http://www.io.org/~diehl/speccy.html

 
 
 

csh "doskey" possible?

Post by Michael Brode » Wed, 07 Feb 1996 04:00:00



> Is it possible to make a csh behave a bit like DOSKEY, i.e. moving through
> a history file with the cursor keys and editing the command line with the
> cursor keys?

If you happen to be using Digital UNIX (nee DEC OSF/1) you can set the
"editmode" variable, in this fashion:

set editmode=emacs

-----------------------------------------------------------------------------
Michael Brodeur                                 Digital Equipment Corporation
DEC FUSE Development                           110 Spit Brook Road ZKO-2/3Q08

-----------------------------------------------------------------------------

 
 
 

csh "doskey" possible?

Post by Cy Schubert - BCSC Open Systems Gro » Thu, 08 Feb 1996 04:00:00





> >: Is it possible to make a csh behave a bit like DOSKEY, i.e. moving
> >: through a history file with the cursor keys and editing the command line
> >: with the cursor keys?
> >You could look into tcsh.
> For the benefit of those users who can't convince their sysadmins to add

Put a copy of tcsh in /home/foobar/bin, then create a symbolic link named
-tcsh that points to it.  Finally put this in your .cshrc file:

if (! $?STARTED) then
        setenv STARTED yes
        setenv SHELL /home/foobar/bin/tcsh
        switch ($?TERM)
        case 1:
                cd
                exec -tcsh
                breaksw
        default:
                exec $SHELL
                breaksw
        endsw
        echo should not get here
endif

Regards,                       Phone:  (604)389-3827
Cy Schubert                    OV/VM:  BCSC02(CSCHUBER)



                "Quit spooling around, JES do it."

 
 
 

csh "doskey" possible?

Post by Someo » Fri, 09 Feb 1996 04:00:00






: > >: Is it possible to make a csh behave a bit like DOSKEY, i.e. moving
: > >: through a history file with the cursor keys and editing the command line
: > >: with the cursor keys?

: > >You could look into tcsh.

: > For the benefit of those users who can't convince their sysadmins to add

: Put a copy of tcsh in /home/foobar/bin, then create a symbolic link named
: -tcsh that points to it.  Finally put this in your .cshrc file:

Hi,

Could you please tell me where to get a copy of tcsh?

Thanks.

: if (! $?STARTED) then
:       setenv STARTED yes
:       setenv SHELL /home/foobar/bin/tcsh
:       switch ($?TERM)
:       case 1:
:               cd
:               exec -tcsh
:               breaksw
:       default:
:               exec $SHELL
:               breaksw
:       endsw
:       echo should not get here
: endif

: Regards,                       Phone:  (604)389-3827
: Cy Schubert                    OV/VM:  BCSC02(CSCHUBER)



:               "Quit spooling around, JES do it."

--

**************************************************************

Hooman Azmoodeh
Systems Analyst
JBL Professional
8500 Balboa Boulevard
Northridge, California 91329



**************************************************************

 
 
 

csh "doskey" possible?

Post by The Shoote » Fri, 09 Feb 1996 04:00:00




> > Is it possible to make a csh behave a bit like DOSKEY, i.e. moving through
> > a history file with the cursor keys and editing the command line with the
> > cursor keys?

> If you happen to be using Digital UNIX (nee DEC OSF/1) you can set the
> "editmode" variable, in this fashion:

> set editmode=emacs

> -----------------------------------------------------------------------------
> Michael Brodeur                                 Digital Equipment Corporation
> DEC FUSE Development                           110 Spit Brook Road ZKO-2/3Q08

> -----------------------------------------------------------------------------

You can also use the program "mced".  Which is available on
"qiclab.scn.rain.com" in /pub/sysadmin "mced.shar.Z"

Add a line in your .cshrc like:
alias = "history -h 50 >\! /tmp/eh$$;mced \!*;source -h /tmp/ec$$;source
/tmp/ec$$;/bin/rm /tmp/ec$$"

Then = and return, will place you in the command line edit mode.  Use
standard vi commands to change and scroll up and down through the
history file.

More over "RTFM"

The Shooter
--
==================================================================

      "A junkie to High-Power Rifle Silhouette Competition"
==================================================================

 
 
 

1. Is there are csh version of "DOSKEY"

I was wondering if there was a UNIX CSH equibalent to the DOSKEY
command in DOS.  If you don't know what it is, it is actually a small
TSR that remembers all of the commands that if been done, and allows
you to recall a previous command.  So, instead of retyping a command,
I scroll through and select the command and just hit enter.  Maybe
there is a small script that I can emulate this...

Thanks.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Jason Jagatic - AIESEC Windsor LCP - University Of Windsor - Ontario, Canada -

- Phone: (519)969-1831  Office: 253-4232 Ext. 3488  Fax. 973-7050 Attn: AIESEC -

2. ADDING data filesystem to the ROOTVG (good or bad)

3. GETSERVBYNAME()????????????????????"""""""""""""

4. IP aliases are slow!!!

5. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

6. Problem width videocard ASUS 3DexPlorer

7. csh: how to redirect I/O to/from "source" or "eval"

8. dhcpcd and eth0:0 ?

9. "test" and "if (-n)" in Csh

10. csh "switch" stmt on "`id`"

11. Did I *dream* that in sh, "." == csh's "source"?

12. csh: escaping "{" and "}" in command substitution

13. Use of "{ " and "}" in csh