DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 28th August 2012
sw2wolf sw2wolf is offline
λ programmer
 
Join Date: Mar 2012
Location: China
Posts: 89
Thanked 0 Times in 0 Posts
Default Why doesnot OpenBSD run /etc/profile and ~/.profile ?

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
Sincerely!
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD: modify .profile for PS1 and PAGER J65nko Guides 1 20th January 2010 12:17 AM
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


All times are GMT. The time now is 12:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick