Custom Prompt Builder:

- add lastexit
- add lastcommand
- add lastcommandprintable
- update german translation
parent 9cf8533a
......@@ -59,9 +59,11 @@ Overview of changes in v9.1 "Dial T for TNT"
for not overriding the useful info with useless, aswell as for:
- echo ${lastcommand}
- echo ${lastcommandprintable}
- echo ${lastexit}
so users are able to grab the values in all cases.
so users are able to grab the values in all cases. Add all three to the
Custom Prompt Builder.
* make colorshell a trap rather than embedding it in PROMPT_COMMAND
......
This diff is collapsed.
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: BashStyle-NG\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-16 18:24+0200\n"
"POT-Creation-Date: 2015-09-20 16:38+0200\n"
"PO-Revision-Date: 2015-09-15 21:45+0200\n"
"Last-Translator: Christopher Roy Bratusek <nano@jpberlin.de>\n"
"Language-Team: German (Germany) (http://www.transifex.com/projects/p/bs-ng/"
......
......@@ -1106,6 +1106,47 @@ The Undobuffer Pythonmodule is licensed under the:
<property name="top_attach">9</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="toolbox.label.bsng">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">BashStyle Stuff</property>
<property name="angle">90</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">6</property>
<property name="height">5</property>
</packing>
</child>
<child>
<object class="GtkButton" id="toolbox.close">
<property name="label" translatable="yes">Close</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">12</property>
</packing>
</child>
<child>
<object class="GtkSeparator" id="toolbox.separator.2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">11</property>
<property name="width">4</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="showspace">
<property name="visible">True</property>
......@@ -1119,49 +1160,44 @@ The Undobuffer Pythonmodule is licensed under the:
</child>
</object>
<packing>
<property name="left_attach">2</property>
<property name="left_attach">3</property>
<property name="top_attach">9</property>
</packing>
</child>
<child>
<object class="GtkSeparator" id="toolbox.separator.2">
<object class="GtkButton" id="showexit">
<property name="label" translatable="yes">Show Exit Value</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">10</property>
<property name="width">4</property>
<property name="left_attach">2</property>
<property name="top_attach">9</property>
</packing>
</child>
<child>
<object class="GtkButton" id="toolbox.close">
<property name="label" translatable="yes">Close</property>
<object class="GtkButton" id="showlastcmd">
<property name="label" translatable="yes">Show Last Command</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">11</property>
<property name="left_attach">1</property>
<property name="top_attach">10</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="toolbox.label.bsng">
<object class="GtkButton" id="showlastcmd_cut">
<property name="label" translatable="yes">Show Last Command (cut)</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">BashStyle Stuff</property>
<property name="angle">90</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">6</property>
<property name="height">4</property>
<property name="left_attach">2</property>
<property name="top_attach">10</property>
</packing>
</child>
<child>
......
......@@ -163,6 +163,9 @@ class PromptBuilder(object):
load_toolbutton("showcpuload", "$(systemkit cpuload)", "\\$(systemkit cpuload)")
load_toolbutton("showseconds", "${SECONDS}", "${SECONDS}")
load_toolbutton("showbatteryload", "$(systemkit battery)", "\\$(systemkit battery)")
load_toolbutton("showexit", "${lastexit}", "${lastexit}")
load_toolbutton("showlastcmd", "${lastcommand}", "${lastcommand}")
load_toolbutton("showlastcmd_cut", "${lastcommandprintable}", "${lastcommandprintable}")
######################## Toolbox Comboboxes ########################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment