Extension to open new terminal with same working directory
David House
dmhouse at gmail.com
Thu Sep 16 09:12:14 CEST 2010
On 15 September 2010 21:06, Edward Z. Yang <ezyang at mit.edu> wrote:
> Excerpts from David House's message of Wed Sep 15 04:45:31 -0400 2010:
>> I'd like M-S-RET to open a new terminal with the same working
>> directory as the old buffer. Has anyone written an extension to do
>> this, or is this possible in vanilla urxvt?
>
> I use the following shell script to do this:
>
> #!/bin/bash
> NUM=$1
> if [[ -z $1 ]]; then NUM="1"; fi
> for i in $(seq 1 $1)
> do
> nohup rxvt-unicode 2>/dev/null > /dev/null &
> done
>
That seems to me like it will just open a number of terminals equal to
the script's first argument. That's not what I want -- I wanted to
open a single new terminal with the same working directory as the
existing one.
As a side point, why do you use nohup there? Just curious.
More information about the rxvt-unicode
mailing list