Author Topic: Repeating configuration of Kate or Kwrite, how?  (Read 2204 times)

Offline John Bee

  • Full Member
  • ***
  • Posts: 184
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #15 on: August 16, 2010, 11:38:45 AM »
now I am stopping looking at the 'easy way of tranferring configs' for the time being.

I *think* you should be safe with backing up any directories that start with kate in both
your  ....../apps and ...../config dirs.

And by the way, my katerc basically looks the same as JohnBoy's.  ;)

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #16 on: August 16, 2010, 07:20:24 PM »
JohnBoy

Thank you: file:///home/gert/.kde4/share/config/katerc this file do seem to have some potential and further next to it I spotted syntax highlighting information which I need to do too.  I may do some experimenting here.

What is an *rc file by the way?  There were a lot ending in rc.

Files ending in rc, or .rc are run command configuration files, by definition. As such, katerc defines how the application Kate will run when the command kate is executed.

Your esoterica fix for the day.  ;D
« Last Edit: August 16, 2010, 07:23:19 PM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #17 on: August 16, 2010, 08:51:26 PM »
Thank you old-polack  ;D ;D ;D
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #18 on: August 17, 2010, 01:52:59 AM »

Files ending in rc, or .rc are run command configuration files, by definition. As such, katerc defines how the application Kate will run when the command kate is executed.

Your esoterica fix for the day.  ;D

I guessed it would only be a matter of time before someone took me out of my ignotance  - again!

I wonder how long I will retain the info this time?

 ;D ;D ;D

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #19 on: August 17, 2010, 02:56:31 AM »

Files ending in rc, or .rc are run command configuration files, by definition. As such, katerc defines how the application Kate will run when the command kate is executed.

Your esoterica fix for the day.  ;D

I guessed it would only be a matter of time before someone took me out of my ignotance  - again!

I wonder how long I will retain the info this time?

 ;D ;D ;D


At least until this thread dies.  ;D ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #20 on: August 17, 2010, 03:52:09 AM »

Files ending in rc, or .rc are run command configuration files, by definition. As such, katerc defines how the application Kate will run when the command kate is executed.

Your esoterica fix for the day.  ;D

I guessed it would only be a matter of time before someone took me out of my ignotance  - again!

I wonder how long I will retain the info this time?

 ;D ;D ;D


At least until this thread dies.  ;D ;D ;D

Maybe I had best help keep it alive so .......     ;D

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #21 on: August 17, 2010, 04:53:26 AM »
old-polack

This is a configuration question, but .....

Many moons ago I am sure you describe for me how you change your konsole colours, and a few other things. When my spectacular crash removed all my records the description was amongst the fallen.

I have spent a lot of time trying to find it in Forum records, searching with you as author and by golly what a goldmine.  Several times I have been totally sidetracked reading many interesting postings.

I must be having a bad run searching as I have still not found you colour scheme intructions for a terminal, have they really disappeared ?? I seem to remember it has something to do with an .rc file (that was what reminded that I still have not got those colours set)

colourscheme konsole terminal
konsole configuration or configure
command colours  etc

Give me a hint please  :'(

I just did another search involving 'color' and got sidetracked reading about rar/unrar files I give up on the konsole colours.

Do you have tip on a simple way of concatenating html files from same website?  I have googled a lot but been unsuccessful so far.   
« Last Edit: August 17, 2010, 04:56:28 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #22 on: August 17, 2010, 04:59:40 AM »
old-polack

This is a configuration question, but .....

Many moons ago I am sure you describe for me how you change your konsole colours, and a few other things. When my spectacular crash removed all my records the description was amongst the fallen.

I have spent a lot of time trying to find it in Forum records, searching with you as author and by golly what a goldmine.  Several times I have been totally sidetracked reading many interesting postings.

I must be having a bad run searching as I have still not found you colour scheme intructions for a terminal, have they really disappeared ?? I seem to remember it has something to do with an .rc file (that was what reminded that I still have not got those colours set)

colourscheme konsole terminal
konsole configuration or configure
command colours  etc

Give me a hint please  :'(

I just did another search involving 'color' and got sidetracked reading about rar/unrar files I give up on the konsole colours.

Do you have tip on a simple way of concatenating html files from same website?  I have googled a lot but been unsuccessful so far.   

Exactly what colors do you want to change?
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #23 on: August 17, 2010, 05:15:41 AM »
polack

You had some very nice colours that stood out in command line, from the beginning of line to prompt. .

Code: [Select]
[root@localhost gert]#
I think I also changed the background colours for both normal and su pane just to make sure that if I only see a bit of right hand side of a window I know instantly if I am in root or not.  However it was your part before the prompt and perhaps the prompt itself, I will go looking for one of your picture examples and see if I can recognise it.
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #24 on: August 17, 2010, 05:36:19 AM »
polack

You had some very nice colours that stood out in command line, from the beginning of line to prompt. .

Code: [Select]
[root@localhost gert]#
I think I also changed the background colours for both normal and su pane just to make sure that if I only see a bit of right hand side of a window I know instantly if I am in root or not.  However it was your part before the prompt and perhaps the prompt itself, I will go looking for one of your picture examples and see if I can recognise it.


In ~/.bashrc, opened with kwrite or any other text editor, copy/paste these lines;

#PS1="\[\e[0;1;36m\][\u@\h \[\e[0;1;33m\]\W\[\e[0;1;36m\]]$\[\e[0;1m\] $RESET"        # light blue

PS1="\[\e[0;1;32m\][\u@\h \[\e[0;1;33m\]\W\[\e[0;1;32m\]]$\[\e[0;1m\] $RESET"         # green

#PS1="\[\e[0;1;35m\][\u@\h \[\e[0;1;33m\]\W\[\e[0;1;35m\]]$\[\e[0;1m\] $RESET"        # lavender

#PS1="\[\e[0;1;34m\][\u@\h \[\e[0;1;33m\]\W\[\e[0;1;34m\]]$\[\e[0;1m\] $RESET"        # dark blue

#PS1="\[\e[0;1;31m\][\u@\h \[\e[0;1;33m\]\W\[\e[0;1;31m\]]$\[\e[0;1m\] $RESET"        # red

#PS1="\[\e[0;1;33m\][\u@\h \[\e[0;1;32m\]\W\[\e[0;1;33m\]]$\[\e[0;1m\] $RESET"        # yellow  - green pwd


Save the file.

Your prompt will now be green, as that's the line that is uncommented. To change to one of the other colors, comment the green line and uncomment a different line. Comment is the # at the beginning of each line. Only one line can be uncommented at a time.

Save the file, again.

The quick way to open the file in kwrite is from a terminal with the command;

[polack@littleboy ~]$ kwrite .bashrc

This saves you from having to select View --> Show Hidden Files in Dolphin, then hunt for the file, right click it and choose Open With --> kwrite.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #25 on: August 17, 2010, 07:16:58 AM »
old-polack
Thank you, went to try it out right away loved the little hint above konsole opening method.  Seems I headed right into a surprise

Code: [Select]
[root@localhost gert]# kwrite .bashrc
kwrite(23191): Session bus not found

KCrash: Application 'kwrite' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-localhost.localdomain/kdeinit4__0

[1]+  Stopped                 kwrite .bashrc
[root@localhost gert]# kwrite

The message pops up and I can copy from the ladybird bug window

"Executable: kwrite PID: 26760 Signal: 6 (Aborted)"

I think I need to think about installing crash debugger as the log is empty or can't be created or something, nice looking red bug though

Anyone got any suggestions?  I have used konsole this way of opening kwrite as as late as 24 hours ago? This is getting interesting again.
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline John Bee

  • Full Member
  • ***
  • Posts: 184
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #26 on: August 17, 2010, 07:25:33 AM »
You can try mine, which shows the date and time, what dir you are presently in, how many items there are and total size, all in multi-colors (not shown here):

Tue Aug 17 09:20:46 AM EDT 2010
~
john@localhost:  26 items 3.8Mb ->


just add the following to your .bashrc


PS1="\n\[\033[1;35m\]\$(/bin/date +%a\ %b\ %e\ %r\ %Z\ %Y)\n\[\033[0;36m\]\w\n\[\033[1;32m\]\u@\h: \[\033[1;34m\] \[\033[1;36m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') items \[\033[1;33m\]\$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')b\[\033[0m\] -> \[\033[0m\]"


Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #27 on: August 17, 2010, 07:35:10 AM »
John Bee
What is the trick? Does not do a thing ;D   What about showing the content in your .bash.rc

Edit:  Not fair on you, I am witholding information, did not notice at the time as no colour changed, but two lines show up, I must have stuffed something.

Code: [Select]
bash: /home/gert/.bashrc: line 24: unexpected EOF while looking for matching `''
bash: /home/gert/.bashrc: line 25: syntax error: unexpected end of file
[gert@localhost ~]$
« Last Edit: August 17, 2010, 07:39:21 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline John Bee

  • Full Member
  • ***
  • Posts: 184
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #28 on: August 17, 2010, 07:47:45 AM »
John Bee
What is the trick? Does not do a thing ;D   What about showing the content in your .bash.rc

Not your fault wedgeling, *mine*, for not mentioning the fact that it is all one line.

Sorry.  :-[

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Repeating configuration of Kate or Kwrite, how?
« Reply #29 on: August 17, 2010, 07:53:55 AM »
John Bee

Oh no, I figured that out no problem, because when pasted in the line disappeared off the screen.  There is something else but I must go for an hour.
« Last Edit: August 17, 2010, 10:38:04 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen