Hi,

it seems to work as expected.

1. Test 1
#terminal_1
% pkill tmux
# set SHELL to a defined value different from user shell (zsh)
% export SHELL=/bin/sh

# no .tmux.conf
# fine!
% ls -al ~/.tmux.conf
ls: cannot access /home/user/.tmux.conf: No such file or directory


# terminal_1
% tmux new-session

# terminal_2
% tmux show -g|grep default-shell
default-shell "/bin/sh"

# FINE!

2. Test 2
#terminal_1
% pkill tmux
% export SHELL=/bin/sh

#terminal_1
% tmux set -g default-shell /bin/zsh\; new-session

#terminal_2
% tmux show -g|grep default-shell
default-shell "/bin/zsh"

# FINE!

3. Test 3
#terminal_1
% pkill tmux
% export SHELL=/bin/sh

#terminal_1
% cat > ~/.tmux.conf
set -g default-shell /bin/zsh
^D

#terminal_1
% tmux new-session

#terminal_2
% tmux show -g|grep default-shell
default-shell "/bin/zsh"

# FINE!


-- Dennis


Quoting Nicholas Marriott <nicholas.marri...@gmail.com>:

> Check after setting it with tmux show -g|grep default-shell (should show
> your value) and tmux show|grep default-shell (should show nothing or
> your value).
>
>
> On Sat, May 26, 2012 at 10:25:13AM +0200, Dennis Guennewig wrote:
>> Hi Nicholas,
>>
>> I think I set it properly. I don't know other ways than setting it via
>> "set-option -g default-shell /bin/zsh" on commandline, within a  
>> session or within
>> the config file.
>>
>> Cheers,
>> Dennis
>>
>> On Fri, May 25, 2012 at 10:12:42PM +0100, Nicholas Marriott wrote:
>> > Setting default-shell should work, are you sure you set it properly?
>> > Make sure you either set it inside the running tmux or restart tmux
>> > entirely to reload the config.
>> >
>> >
>> > On Fri, May 25, 2012 at 03:48:35PM +0100, Thomas Adam wrote:
>> > > On Fri, May 25, 2012 at 04:22:26PM +0200, Dennis G?nnewig wrote:
>> > > >
>> > > > Dear mailinglist,
>> > > >
>> > > > I tried to use the zsh double star "**" (recursive match) in a tmux
>> > > > command string, but it does not match correctly. The same command +
>> > > > "**" works without tmux. Any idea why this doesn't work? Which shell
>> > > > is used to interpret the command: sh, default-shell, $SHELL? My guess
>> > > > is "sh".
>> > >
>> > > Yes.  It's sh(1).  Look here:
>> > >
>> > > execl(_PATH_BSHELL, "sh", "-c", wp->cmd, (char *) NULL);
>> > >
>> > > So you'll need to use:
>> > >
>> > > zsh -c '...'
>> > >
>> > > -- Thomas Adam
>> > >
>> > >  
>> ------------------------------------------------------------------------------
>> > > Live Security Virtual Conference
>> > > Exclusive live event will cover all the ways today's security and
>> > > threat landscape has changed and how IT managers can respond.  
>> Discussions
>> > > will include endpoint security, mobile security and the latest  
>> in malware
>> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> > > _______________________________________________
>> > > tmux-users mailing list
>> > > tmux-users@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/tmux-users




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to