Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-2006, 11:31 PM
Handover Phist
 
Posts: n/a
Default Re: clear shell after a command like "vi"

Robert M. Riches Jr. :
> On 2006-10-02, dragomir kollaric <dragomirr_kollaric@bigmailbox.net> wrote:
>> OK, with the "X-Window" environment, this problem doesn't really
>> exists, but for some-one who uses a PC with the console and bash,
>> after one used the "vi" the editor, the screen is still full with
>> the text of the "editor". Now off course a "clear" command will
>> present a clean screen. Can the "shell" be programmed in such a way
>> as after one finishes typing text in vi and quit it, that the
>> screen will be cleared?
>>
>> Something easy?

>
> With csh,
>
> alias vi 'vi;clear'
>
> should be worth a try. Your shell may take different
> syntax.


with BASH:

alias vi="vi;clear"

tested and working here.

--
I like the way ONLY their mouths move ... They look like DYING OYSTERS

http://www.websterscafe.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:46 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.