I have this in my ~/.Xresources which I think does what you want:

*.VT100.translations:   #override \n\
                        Shift Ctrl <Key>Return:         spawn-new-terminal()

Reload the file with xrdb ~/.Xresources and Ctrl+Shift+Enter will open
a new terminal in the current working directory.

You can find my whole .Xresources file here if you are interested:
https://github.com/DarkStarSword/junk/blob/master/config/home/.Xresources

On 21 September 2013 05:19, Peter Flood <i...@whywouldwe.com> wrote:
> FYI, in Terminal on a mac pressing cmd + t opens a new tab with the same
> directory (in fish at least).
>
>
>
> On 20/09/2013 20:08, Wai Yan Pong wrote:
>
> Thanks for the clarification.
>
> My ultimate goal is to customize config.h for dwm so that Alt-shift-return
> will spawn a new terminal in the current directory. So far I have not
> succeed. Well, certainly this is not a fish question but one about dwm ...
> however I'm pretty sure there are fish users who is also using dwm can help
> me out on this.
>
>
> On Fri, Sep 20, 2013 at 11:50 AM, ridiculous_fish
> <corydo...@ridiculousfish.com> wrote:
>>
>> Using $PWD is fine. For the record, what you're looking for is called
>> command substitution:
>>
>>     rxvt -cd (echo $pwd)
>>
>> Hope that helps,
>> _fish
>>
>> On Sep 20, 2013, at 11:28 AM, Wai Yan Pong <wypon...@gmail.com> wrote:
>>
>> Oh simply rxvt -cd $PWD does the trick, sorry.
>>
>>
>> On Fri, Sep 20, 2013 at 10:05 AM, Wai Yan Pong <wypon...@gmail.com> wrote:
>>>
>>> I would like to pipe stdout as an argument in fish, e.g.
>>>
>>> rxvt -cd < echo $pwd
>>>
>>> (which is wrong). So what's the right (fish) way to do so?
>>> Thanks
>>
>>
>>
>> ------------------------------------------------------------------------------
>> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
>> SharePoint
>> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
>> includes
>> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk_______________________________________________
>> Fish-users mailing list
>> Fish-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fish-users
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>



-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to