[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help to use screen command

From: Trent W. Buck
Subject: Re: help to use screen command
Date: Fri, 05 Dec 2008 11:23:48 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Micah Cowan <address@hidden> writes:

> Zaphod wrote:
>> Hi
>> 1st of all, i am using screen for number of years now and like it very
>> much.
>> lately decided to upgrade my environment. So my question is.
>> Using .screenrc file where wants to open window with vim. The vim should
>> also
>> open number of files. If running such vim from bash:
>> vim `find . -name '*.c' -o -name '*.cpp'`
>> but such syntax doesn't work with screen command in RC file.
> This may help:
> screen sh -c "vim `find . -name '*.c' -o -name '*.cpp'`"
> title vim

FWIW, sh -c 'vim find . -name \*.c -o -name \*.cpp -exec vim {} +' would
be better, if your system supports POSIX 2003's variadic -exec {} +.
(Failing that, xargs.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]