![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Both /etc/profile and ~/.profile work ok before using tmux . After executing tmux in ~/.xsession, it seems OpenBSD donot run /etc/profile and ~/.profile.
Code:
$tail ~/.xsession ... xterm -e ~/bin/tmuxz & exec /usr/local/bin/dwm $cat ~/bin/tmuxz #!/bin/sh cmd=$(which tmux) session=$USER@$HOSTNAME if [ -z $cmd ]; then echo "You need to install tmux." exit 1 fi $cmd has -t $session if [ $? != 0 ]; then $cmd new -d -n work -s $session "ksh" $cmd splitw -v -p 65 -t $session "ksh" $cmd select-pane -t 1 fi $cmd att -t $session |
|
||||
|
You require a login shell. The tmux(1) man page discusses login shells in four places. You should test them all. You might start with the option I've highlighted, since the man page says it is necessary.
Code:
-c shell-command
Execute shell-command using the default shell. If
necessary, the tmux server will be started to retrieve the
default-shell option. This option is for compatibility
with sh(1) when tmux is used as a login shell.
Code:
-l Behave as a login shell. This flag currently has no effect
and is for compatibility with other shells when using tmux
as a login shell.
Code:
default-command shell-command
Set the command used for new windows (if not specified
when the window is created) to shell-command, which may
be any sh(1) command. The default is an empty string,
which instructs tmux to create a login shell using the
value of the default-shell option.
Code:
default-shell path
Specify the default shell. This is used as the login
shell for new windows when the default-command option is
set to empty, and must be the full path of the
executable. When started tmux tries to set a default
value from the first suitable of the SHELL environment
variable, the shell returned by getpwuid(3), or /bin/sh.
This option should be configured when tmux is used as a
login shell.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
I need to add `set-option -g default-shell /bin/ksh` to ~/.tmux.conf.
thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OpenBSD: modify .profile for PS1 and PAGER | J65nko | Guides | 1 | 19th January 2010 11:17 PM |
| when and by what is .profile read? | kasse | FreeBSD General | 8 | 11th September 2008 08:46 AM |
| working with .profile and history | uptonm | OpenBSD Security | 1 | 15th August 2008 12:14 PM |
| Firefox profile not saving | tonywob | FreeBSD General | 4 | 20th May 2008 12:20 PM |