LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-27-2006, 07:31 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[OpenBSD 3.9] kde konsole issues


I am using KDE 3.5 on OpenBSD 3.9 when I open the KDE Konsole it shows my bash prompt as "bash-3.1$" which is different from my shell's bash prompt which looks like [user @ host ~]. How can I import the shell's console settings to KDE Konsole?

Also, cut-n-paste (by clicking left & right mouse) works in the shell/ console but in KDE Konsole I have to highlight-select copy-select paste. How can I have the shell's cut-n-paste options in Konsole?

Thanks!
 
Old 06-27-2006, 07:38 AM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
What you're noticing is probably this: when you first log in, Bash sources the .bash_profile configuration file in your home directory. From there you probably set PS1, right? Unfortunately, for whatever reason, PS1 will not stick when you open another non-login shell from a pseudo-terminal (like xterm or konsole), not even if you export the variable. So you have to set it again. Fortunately, whenever Bash runs as a non-login shell, it sources the .bashrc file. So all you have to do is place your PS1 customization from .bash_profile into .bashrc too. Or (what I do) simply source .bashrc from your .bash_profile:
Code:
if [ -e $HOME/.bashrc ]; then
    . $HOME/.bashrc
fi
That way you only have to write your customizations once, in your .bashrc file.

The copy/paste thing is a different problem, having simply to do with a difference of mouse bindings between konsole and the OpenBSD terminals. Look around in konsole's options to see if such an option is configurable; it may be, or that may be unsupported. If you really miss that feature, xterm lets you copy by selecting with the left mouse button and paste with the center mouse button. (But unfortunately, xterm doesn't support tabs like konsole does.)

Last edited by taylor_venable; 06-27-2006 at 07:43 AM.
 
Old 06-29-2006, 04:17 AM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by taylor_venable
Or (what I do) simply source .bashrc from your .bash_profile:
Code:
if [ -e $HOME/.bashrc ]; then
    . $HOME/.bashrc
fi
Thanks! that works fine!

Quote:
The copy/paste thing is a different problem, having simply to do with a difference of mouse bindings between konsole and the OpenBSD terminals.
I think this is a problem with my laptop's mouse pad. I just added a USB mouse & it works fine!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE/Konsole Casket Linux - Newbie 3 10-08-2005 11:24 PM
OpenBSD + kvm issues nmayotte *BSD 2 07-21-2004 01:15 PM
DNS issues on OpenBSD 3.3 dkaplowitz *BSD 0 09-01-2003 11:02 PM
OpenBSD Hostname and Mail Issues R4z0r *BSD 1 11-30-2002 07:12 PM
OpenBSD 3.1 and X issues finegan *BSD 4 07-08-2002 05:35 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration