On Mon, Apr 18, 2016 at 04:42:56PM +0200, Marko Cupa? wrote:
> Hi,
>
> in tcsh on FreeBSD, I use the following line in .tcshrc in order to
> start xfce when looging on ttyv3:
>
> if ($tty == ttyv3) then
> startxfce4 --with-ck-launch
> logout
> endif
>
> How can I achieve the same with OpenBSD's default ksh and .kshrc?
>
> Thank you in advance,
> --
> Before enlightenment - chop wood, draw water.
> After enlightenment - chop wood, draw water.
>
> Marko CupaÄ
> https://www.mimar.rs/
>
TTY=$( /usr/bin/tty )
if [[ ${TTY##*/} == "ttyp2" ]]; then
# your stuff
fi
${TTY##*/} is a quicker way to say $( basename $TTY )
Replace "ttyp2" with the tty of your choice.
I would however opt for putting the desktop startup thingies in
$HOME/.xinitrc instead.
--
Andreas Kusalananda Kähäri, Bioinformatics Developer (NBIS)
Uppsala University, Uppsala, Sweden
NBIS: http://nbis.se OpenPGP: url=https://db.tt/2zaB1E7y; id=46082BDF
------------------------------------------------------------------------
[demime 1.01d removed an attachment of type application/pgp-signature which had
a name of signature.asc]