Skip to content

Can I add a custom command automatically after a command using the lua script? #328

Answered by chrisant996
xxnuo asked this question in Q&A
Discussion options

You must be logged in to vote

Clink isn't needed for the stated situation. You could use doskey to define an alias.

doskey ls=ls $* 2^>^&1 ^| less

I forget offhand whether ^ will successfully escape the redirection symbols when defining an alias.

There are many ways to do this sort of thing with doskey aliases.

Doskey is part of the Windows OS. Looking up documentation and examples for doskey should help.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@xxnuo
Comment options

@xxnuo
Comment options

Comment options

You must be logged in to vote
5 replies
@xxnuo
Comment options

@xxnuo
Comment options

@chrisant996
Comment options

@xxnuo
Comment options

@chrisant996
Comment options

Answer selected by xxnuo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants