[Konsole-devel] [Bug 161280] bookmark infrequent or important commands

Robert Knight robertknight at gmail.com
Tue Jan 20 07:38:06 UTC 2009


http://bugs.kde.org/show_bug.cgi?id=161280


Robert Knight robertknight gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robertknight at gmail.com




--- Comment #3 from Robert Knight <robertknight gmail com>  2009-01-20 08:38:05 ---
> While those examples may look trivial and not significant enough
>  to call this a regression, how about this example "bookmark": 

> "Take Temperature" tc=$(cat /proc/acpi/thermal_zone/THM/temperature|cut
> -d' ' -f 14); tf=$(echo "scale=2;((9/5) * $tc) +32" |bc); echo "temp is
> $tc C or $tf F" 

In all honesty I think that writing a bunch of scripts in a friendly language
(ie. not sh) and placing them in a directory in your path would be a better way
of doing this - for several reasons:

- They would be easier to read and come back to in future
- You can add comments, variable names etc.

And most importantly:

If you ever want to share these with someone else, they'll work in any version
of any terminal.  If you want to share these across machines that would be much
more straightforward than bookmarks assuming the scripts were placed on a
shared directory somewhere.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list