Bug 163936 - [RFE] save/restore profile variables via "konsoleprofile"
Summary: [RFE] save/restore profile variables via "konsoleprofile"
Status: RESOLVED LATER
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: LO wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-13 00:48 UTC by Matthew Woehlke
Modified: 2012-06-19 17:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Woehlke 2008-06-13 00:48:04 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I love the utility of 'konsoleprofile'! But you know those pesky users, give them a steak, and they want lobster as well :-). Would it be terribly hard to add the ability to save/restore variables this way? I'm thinking something like this:

# .bashrc
su() {
  konsoleprofile "push(ColorScheme);ColorScheme=Root"
  command su
  konsoleprofile "pop(ColorScheme)"
}

...bonus points for adding command chaining (if it's not already possible?), but I don't have any particular need for it, I'm just a lazy typist in bug reports ;-).
Comment 1 Kurt Hindenburg 2012-06-19 02:54:14 UTC
I don't really see this happening - the konsoleprofile is a really small (1 line) sh script.

If someone wants to code it we'll see.
Comment 2 Matthew Woehlke 2012-06-19 17:51:00 UTC
I don't think it would actually involve changing "konsoleprofile" as such (better, in fact, if it didn't) so much as teaching Konsole itself to recognize additional commands such as in the example above.