grml-etc-core.git
12 years agoRelease new version 0.3.90. v0.3.90
Christian Hofstaedtler [Thu, 26 May 2011 19:24:51 +0000 (21:24 +0200)]
Release new version 0.3.90.

12 years agozshrc: vman: Handle zero arguments [Closes: issue993]
Frank Terbeck [Thu, 26 May 2011 19:16:00 +0000 (21:16 +0200)]
zshrc: vman: Handle zero arguments [Closes: issue993]

12 years agoUse the same options in lnew as in lsnew
Frank Terbeck [Thu, 26 May 2011 18:58:52 +0000 (20:58 +0200)]
Use the same options in lnew as in lsnew

Signed-off-by: Frank Terbeck <ft@grml.org>
12 years agoFix `lsold' globbing flags [Closes: issue991]
Frank Terbeck [Thu, 26 May 2011 18:51:32 +0000 (20:51 +0200)]
Fix `lsold' globbing flags [Closes: issue991]

Before it was just a `lsnew' derivative.

Reported-by: Bernhard Tittelbach <xro@realraum.at>
Signed-off-by: Frank Terbeck <ft@grml.org>
12 years agoRelease new version 0.3.89. v0.3.89
Christian Hofstaedtler [Wed, 11 May 2011 19:06:34 +0000 (21:06 +0200)]
Release new version 0.3.89.

12 years agoBump Standards-Version to 3.9.2 (no changes)
Christian Hofstaedtler [Wed, 11 May 2011 19:05:47 +0000 (21:05 +0200)]
Bump Standards-Version to 3.9.2 (no changes)

13 years agoPreserve cursor position with `sudo-command-line' [Closes: issue980]
Frank Terbeck [Tue, 19 Apr 2011 21:13:00 +0000 (23:13 +0200)]
Preserve cursor position with `sudo-command-line' [Closes: issue980]

Code suggested by Bernhard, minor adjustments by me.

Reported-by: Bernhard Tittelbach <xro@realraum.at>
Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agoWaste less space in window titles [Closes: issue979]
Frank Terbeck [Tue, 19 Apr 2011 21:05:16 +0000 (23:05 +0200)]
Waste less space in window titles [Closes: issue979]

Code suggested by Bernhard, minor adjustments by me.

Reported-by: Bernhard Tittelbach <xro@realraum.at>
Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agoRecommend grml-scripts-core
Ulrich Dangel [Mon, 18 Apr 2011 21:12:46 +0000 (23:12 +0200)]
Recommend grml-scripts-core

Sebastian Boehm provided a patch to split grml-scripts and
grml-scripts-core. The idea is that grml-scripts-core only contains the
necessary scrips for grml-etc-core and has less dependencies then
grml-scripts. This patch Recommends grml-scripts-core in grml-etc-core

13 years agoRevert "Depend on grml-scripts-core instead of grml-scripts."
Ulrich Dangel [Mon, 18 Apr 2011 21:11:35 +0000 (23:11 +0200)]
Revert "Depend on grml-scripts-core instead of grml-scripts."

This reverts commit 72b956de5d656488e7c5841e11242e6faf6483e2.

13 years agoDepend on grml-scripts-core instead of grml-scripts.
Ulrich Dangel [Mon, 18 Apr 2011 21:05:21 +0000 (23:05 +0200)]
Depend on grml-scripts-core instead of grml-scripts.

Sebastian Boehm provided a patch to split grml-scripts and
grml-scripts-core. The idea is that grml-scripts-core only contains the
necessary scrips for grml-etc-core and has less dependencies then
grml-scripts.

13 years agoAdd *.substvars to gitignore
Frank Terbeck [Wed, 9 Mar 2011 14:12:31 +0000 (15:12 +0100)]
Add *.substvars to gitignore

13 years agoFixing ssl-cert-{sha512,sha256,sha1,md5}()
Frank Terbeck [Thu, 20 Jan 2011 08:30:29 +0000 (09:30 +0100)]
Fixing ssl-cert-{sha512,sha256,sha1,md5}()

These functions are generated in a loop. However, the way they were
generated was broken. The loop variable is *not* replaced by a literal
string in the resulting functions. Therefore, as soon as the variable
is unset all functions become broken. Luckily, they broke loudly.
Otherwise this may not have been caught easily.

Reported-by: Michael Gebetsroither <gebi@grml.org>
Signed-off-by: Frank Terbeck <ft@grml.org>
13 years ago/etc/skel/.zshrc: provide improved rationalise-dot version by Mikael Magnusson
Michael Prokop [Tue, 18 Jan 2011 16:49:12 +0000 (17:49 +0100)]
/etc/skel/.zshrc: provide improved rationalise-dot version by Mikael Magnusson

Acked-By: Frank Terbeck <ft@grml.org>
13 years agozshrc: activate zsh lookup for all users
Frank Terbeck [Tue, 4 Jan 2011 14:22:04 +0000 (15:22 +0100)]
zshrc: activate zsh lookup for all users

Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agozshrc: Removing d()
Frank Terbeck [Tue, 4 Jan 2011 13:01:03 +0000 (14:01 +0100)]
zshrc: Removing d()

As requested by mrud.

Acked-by: Michael Prokop <mika@grml.org>
Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agoRelease new version 0.3.88. v0.3.88
Michael Prokop [Sun, 26 Dec 2010 23:10:15 +0000 (00:10 +0100)]
Release new version 0.3.88.

13 years agoRemove persistent undo for vim
Ulrich Dangel [Wed, 22 Dec 2010 10:22:18 +0000 (11:22 +0100)]
Remove persistent undo for vim

After some discussion with ft and mika we decided that persistent undo
should not be part of our default configuration as it changes existing
workflows.

13 years agoRelease new version 0.3.87. v0.3.87
Michael Prokop [Fri, 17 Dec 2010 11:36:58 +0000 (12:36 +0100)]
Release new version 0.3.87.

13 years agoAdding a kill to slash binding to alt-backspace
Frank Terbeck [Wed, 8 Dec 2010 11:59:54 +0000 (12:59 +0100)]
Adding a kill to slash binding to alt-backspace

As requested by mika, mrud and kafux.

I'm binding the widget to "M-C-h" and "M-C-?" because those are common
codes send by the backspace key in various terminals (and sometimes
terminfo lies about it).

13 years agoRelease new version 0.3.86. v0.3.86
Michael Prokop [Tue, 7 Dec 2010 17:44:01 +0000 (18:44 +0100)]
Release new version 0.3.86.

13 years agoFix `VCS_INFO_realpath()' for zsh 4.3.10 and below
Frank Terbeck [Fri, 3 Dec 2010 10:26:36 +0000 (11:26 +0100)]
Fix `VCS_INFO_realpath()' for zsh 4.3.10 and below

If the chpwd hook is activated by using the `chpwd_functions[]' array,
could break `VCS_INFO_realpath()', which could lead to endless loops in
`vcs_info' if the one of the hook functions produced output.

This fixes it.

I'm refraining from patching the grmlzshrc-included
`VCS_INFO_realpath()' function, because the use of "cd -q" requires a
pretty recent version of the shell.

13 years agoRelease new version 0.3.85. v0.3.85
Michael Prokop [Tue, 23 Nov 2010 22:30:57 +0000 (23:30 +0100)]
Release new version 0.3.85.

13 years agozshrc: Do not set `localoptions' in `xsource()'
Frank Terbeck [Tue, 23 Nov 2010 22:16:16 +0000 (23:16 +0100)]
zshrc: Do not set `localoptions' in `xsource()'

"emulate -L zsh" sets zsh's option set to the default values of zsh's
native mode. The `-L' causes the options to be set local to the
surrounding function. That makes sense in most cases.

With `xsource()' however, we explicitly want to *allow* changing options
from the files sourced by that function. That's one of the main purposes
of the function.

I took the `emulate' call out entirely because it doesn't make sense
without `-L' in untility functions. I also hardened the function's code
a little when it's run with non-zsh-mode options (like sh_word_split).

Reported-by: Dominic Hopf
13 years agoUpdated debian/changelog
Frank Terbeck [Sun, 21 Nov 2010 12:24:16 +0000 (13:24 +0100)]
Updated debian/changelog

13 years agoRemove startx and xinit functions
Ulrich Dangel [Sun, 21 Nov 2010 11:57:07 +0000 (12:57 +0100)]
Remove startx and xinit functions

Current X11 versions as well as the current grml-x version do
not longer need a configuration file. Therefore the xinit/startx
functions are not longer needed.

The decision to switch to a config less xorg environment was made at the
grml developer meeting http://grml.org/reports/devmeeting_2010/ and a the
new grml-x packet is already uploaded to grml-testing.

13 years agoRelease new version 0.3.84. v0.3.84
Michael Prokop [Mon, 8 Nov 2010 16:31:25 +0000 (17:31 +0100)]
Release new version 0.3.84.

13 years agoChange the location of the persistent undo file to $HOME/.cache/vim [Closes: issue927]
Ulrich Dangel [Mon, 8 Nov 2010 16:21:44 +0000 (17:21 +0100)]
Change the location of the persistent undo file to $HOME/.cache/vim [Closes: issue927]

13 years agozshrc: Fix functions path in /usr/share
Frank Terbeck [Mon, 8 Nov 2010 15:55:32 +0000 (16:55 +0100)]
zshrc: Fix functions path in /usr/share

13 years agoUpdate changelog regarding /etc/skel/.gitconfig and Standards-Version update.
Michael Prokop [Mon, 8 Nov 2010 10:54:52 +0000 (11:54 +0100)]
Update changelog regarding /etc/skel/.gitconfig and Standards-Version update.

13 years agoBump Standards-Version to 3.9.1.
Michael Prokop [Mon, 8 Nov 2010 10:30:09 +0000 (11:30 +0100)]
Bump Standards-Version to 3.9.1.

13 years agoSync zsh-lookup with upstream
Frank Terbeck [Fri, 5 Nov 2010 08:34:16 +0000 (09:34 +0100)]
Sync zsh-lookup with upstream

...adding grml_bts backend.

13 years agoUpdated debian/changelog
Frank Terbeck [Fri, 5 Nov 2010 08:33:38 +0000 (09:33 +0100)]
Updated debian/changelog

13 years agodebian/copyright update, due to zsh-lookup inclusion
Frank Terbeck [Fri, 5 Nov 2010 08:33:00 +0000 (09:33 +0100)]
debian/copyright update, due to zsh-lookup inclusion

13 years agoAdd zsh-lookup sub-system
Frank Terbeck [Thu, 4 Nov 2010 12:48:18 +0000 (13:48 +0100)]
Add zsh-lookup sub-system

In the grml-etc-core package. Not in the grmlzshrc file. Not going to happen. :)

13 years ago/etc/skel/.gitconfig: drop core.pager option (less -Mr) causing terminal problems.
Michael Prokop [Thu, 4 Nov 2010 13:01:16 +0000 (14:01 +0100)]
/etc/skel/.gitconfig: drop core.pager option (less -Mr) causing terminal problems.

13 years agozshrc: Disable vcs_info for restricted shells
Frank Terbeck [Thu, 21 Oct 2010 08:46:33 +0000 (10:46 +0200)]
zshrc: Disable vcs_info for restricted shells

13 years agoUpdate debian/changelog
Frank Terbeck [Mon, 27 Sep 2010 20:01:07 +0000 (22:01 +0200)]
Update debian/changelog

13 years agoAdd support for persistent-undo in vim >= 703
Ulrich Dangel [Mon, 27 Sep 2010 19:54:16 +0000 (21:54 +0200)]
Add support for persistent-undo in vim >= 703

Store the undo file in ~/.vim/undo. The directory will be created
automatically if possible.

Acked-by: Michael Prokop <mika@grml.org>
13 years agoAdded a note about modifying the zshrc file
Frank Terbeck [Wed, 15 Sep 2010 09:53:30 +0000 (11:53 +0200)]
Added a note about modifying the zshrc file

13 years agogrmlzshrc.t2t: Finishing functions.
Joerg Woelke [Sat, 28 Aug 2010 14:10:05 +0000 (16:10 +0200)]
grmlzshrc.t2t: Finishing functions.

cdiff(), cvsa(), cvsd(), cvsl(), cvsq(), cvsr(), cvss().

13 years agoUpdate debian/changelog
Frank Terbeck [Sat, 28 Aug 2010 13:19:20 +0000 (15:19 +0200)]
Update debian/changelog

13 years agogrmlzshrc.t2t: doc for more functions.
Joerg Woelke [Fri, 27 Aug 2010 12:19:44 +0000 (14:19 +0200)]
grmlzshrc.t2t: doc for more functions.

gex(), wikide(), wikien() and wodeb().

13 years agozshrc: Fix passing of args in cdiff().
Joerg Woelke [Fri, 27 Aug 2010 18:06:02 +0000 (20:06 +0200)]
zshrc: Fix passing of args in cdiff().

Use "$@" instead of "$*".

13 years agogrmlzshrc.t2t: doc for netcraft(), swiki(), oleo().
Joerg Woelke [Thu, 26 Aug 2010 15:55:41 +0000 (17:55 +0200)]
grmlzshrc.t2t: doc for netcraft(), swiki(), oleo().

13 years agogrmlzshrc.t2t: Some more functions.
Joerg Woelke [Tue, 24 Aug 2010 14:53:51 +0000 (16:53 +0200)]
grmlzshrc.t2t: Some more functions.

dmoz(), dwicti(), ewicti(), ggogle(), google(), iwclient(),
mggogle().

13 years agoUpdate debian/changelog
Frank Terbeck [Thu, 19 Aug 2010 19:40:25 +0000 (21:40 +0200)]
Update debian/changelog

13 years agozshrc: Fix iwclient()
Joerg Woelke [Thu, 19 Aug 2010 14:46:31 +0000 (16:46 +0200)]
zshrc: Fix iwclient()

Calling dhclient instead of aliasing it.
Make awk print the right field.

Acked-by: Michael Prokop <mika@grml.org>
13 years agogrmlzshrc.t2t: More functions.
Joerg Woelke [Thu, 19 Aug 2010 13:40:09 +0000 (15:40 +0200)]
grmlzshrc.t2t: More functions.

deswap(), ipv6-tunnel(), Start()/Stop()/Reload() etc.

13 years agogrmlzshrc.t2t: More functions documented.
Joerg Woelke [Wed, 18 Aug 2010 19:37:37 +0000 (21:37 +0200)]
grmlzshrc.t2t: More functions documented.

any(), dchange(), dnews(), edalias(), edfunc(), freload(),
manzsh(), profile(), sll(), setenv(), uchange().

13 years agogrmlzshrc.t2t: Docs for some functions.
Joerg Woelke [Wed, 18 Aug 2010 14:20:03 +0000 (16:20 +0200)]
grmlzshrc.t2t: Docs for some functions.

get_tw_cli(), apache2-ssl-certificate(), nt().

13 years agogrmlzshrc.t2t: Finish aliases
Joerg Woelke [Mon, 16 Aug 2010 16:45:59 +0000 (18:45 +0200)]
grmlzshrc.t2t: Finish aliases

Document debs-by-size and fix formatting typo in "...".

13 years agogrmlzshrc.t2t: Docs for some aliases.
Joerg Woelke [Mon, 16 Aug 2010 11:46:04 +0000 (13:46 +0200)]
grmlzshrc.t2t: Docs for some aliases.

$(uname -r)-reboot, cp, mkdir, mv, rm, rd, term2iso, term2utf,
0, S, s, top10, dbp, ge llog, tlog.

13 years agogrmlzshrc.t2t: aliases hidiff, url-quote, mdstat and ...
Joerg Woelke [Wed, 11 Aug 2010 19:35:53 +0000 (21:35 +0200)]
grmlzshrc.t2t: aliases hidiff, url-quote, mdstat and ...

13 years agogrmlzshrc.t2t: Mercurial related aliases (hbp, mq).
Joerg Woelke [Wed, 11 Aug 2010 12:48:49 +0000 (14:48 +0200)]
grmlzshrc.t2t: Mercurial related aliases (hbp, mq).

13 years agogrmlzshrc.t2t: environment vars LESS_TERMCAP_*
Joerg Woelke [Tue, 10 Aug 2010 16:47:10 +0000 (18:47 +0200)]
grmlzshrc.t2t: environment vars LESS_TERMCAP_*

13 years agoUpdate debian/changelog
Frank Terbeck [Sat, 7 Aug 2010 12:59:42 +0000 (14:59 +0200)]
Update debian/changelog

13 years agozshrc: Remove get{air,gizmo,skype,skypebeta,xlite} functions
Ulrich Dangel [Sat, 7 Aug 2010 12:52:59 +0000 (14:52 +0200)]
zshrc: Remove get{air,gizmo,skype,skypebeta,xlite} functions

13 years agoUpdate debian/changelog
Frank Terbeck [Sat, 7 Aug 2010 09:59:38 +0000 (11:59 +0200)]
Update debian/changelog

13 years agozshrc: Remove functions gethgclone() and gethgsnap()
Joerg Woelke [Sat, 7 Aug 2010 09:54:15 +0000 (11:54 +0200)]
zshrc: Remove functions gethgclone() and gethgsnap()

Superfluous wrappers around hg.

13 years agogrmlzshrc.t2t: functions hgstat() and hgdi().
Joerg Woelke [Sat, 7 Aug 2010 09:49:15 +0000 (11:49 +0200)]
grmlzshrc.t2t: functions hgstat() and hgdi().

13 years agogrmlzshrc.t2t: Variable watch.
Joerg Woelke [Thu, 5 Aug 2010 16:53:48 +0000 (18:53 +0200)]
grmlzshrc.t2t: Variable watch.

13 years agogrmlzshrc.t2t: Vars HISTFILE, HISTSIZE and SAVEHIST.
Joerg Woelke [Thu, 5 Aug 2010 11:28:26 +0000 (13:28 +0200)]
grmlzshrc.t2t: Vars HISTFILE, HISTSIZE and SAVEHIST.

13 years agogrmlzshrc.t2t: Doc for functions whatwhen() and weather()
Joerg Woelke [Sat, 31 Jul 2010 11:15:27 +0000 (13:15 +0200)]
grmlzshrc.t2t: Doc for functions whatwhen() and weather()

13 years agoUpdate debian/changelog
Frank Terbeck [Fri, 30 Jul 2010 17:05:44 +0000 (19:05 +0200)]
Update debian/changelog

13 years agozshrc: Silence warning in weather() and make func more verbose.
Joerg Woelke [Fri, 30 Jul 2010 15:19:53 +0000 (17:19 +0200)]
zshrc: Silence warning in weather() and make func more verbose.

13 years agoFixed a bug in whatwhen()' help output
Frank Terbeck [Wed, 28 Jul 2010 14:42:04 +0000 (16:42 +0200)]
Fixed a bug in whatwhen()' help output

Found by Joerg Woelke. Thanks!

Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agoUpdate debian/changelog
Frank Terbeck [Wed, 28 Jul 2010 14:15:09 +0000 (16:15 +0200)]
Update debian/changelog

13 years agogrmlzshrc.t2t: Document function linenr()
Joerg Woelke [Wed, 28 Jul 2010 13:11:33 +0000 (15:11 +0200)]
grmlzshrc.t2t: Document function linenr()

13 years agoUpdated debian/changelog
Frank Terbeck [Fri, 23 Jul 2010 08:48:23 +0000 (10:48 +0200)]
Updated debian/changelog

Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agozshrc: Comment out zurl().
Joerg Woelke [Wed, 21 Jul 2010 16:10:26 +0000 (18:10 +0200)]
zshrc: Comment out zurl().

Function is broken and violates Tinyurl's policy. Needs a rewrite.

Acked-by: Michael Prokop <mika@grml.org>
Acked-by: Frank Terbeck <ft@grml.org>
13 years agodebian/changelog: Fixed typo
Frank Terbeck [Tue, 29 Jun 2010 11:43:03 +0000 (13:43 +0200)]
debian/changelog: Fixed typo

Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agogrmlzshrc.t2t: Remove references to git-get-*()
Frank Terbeck [Tue, 29 Jun 2010 11:23:23 +0000 (13:23 +0200)]
grmlzshrc.t2t: Remove references to git-get-*()

Reported-by: Carsten Hey <carsten@debian.org>
Signed-off-by: Frank Terbeck <ft@grml.org>
13 years agoUpdated debian/changelog
Frank Terbeck [Tue, 29 Jun 2010 09:10:56 +0000 (11:10 +0200)]
Updated debian/changelog

Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
13 years agozshrc: Amending the previous patches slightly
Frank Terbeck [Tue, 29 Jun 2010 09:07:26 +0000 (11:07 +0200)]
zshrc: Amending the previous patches slightly

  * Using our `check_com' function instead of `which'
  * Make sure `print' doesn't crap its pants for files named "-*"

Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
13 years agozshrc: rename new() to modified(), add an alias for backwards compatibility and add...
Carsten Hey [Mon, 28 Jun 2010 12:03:42 +0000 (14:03 +0200)]
zshrc: rename new() to modified(), add an alias for backwards compatibility and add new function accessed()

Signed-off-by: Carsten Hey <carsten@debian.org>
13 years agozshrc: load zsh/stat as zstat instead of stat
Carsten Hey [Mon, 28 Jun 2010 18:43:18 +0000 (20:43 +0200)]
zshrc: load zsh/stat as zstat instead of stat

Signed-off-by: Carsten Hey <carsten@debian.org>
13 years agozshrc: fix typo in default value handling of changed() and new()
Carsten Hey [Mon, 28 Jun 2010 12:03:39 +0000 (14:03 +0200)]
zshrc: fix typo in default value handling of changed() and new()

Signed-off-by: Carsten Hey <carsten@debian.org>
13 years agozshrc: Remove git-get-*()
Frank Terbeck [Sat, 19 Jun 2010 19:21:03 +0000 (21:21 +0200)]
zshrc: Remove git-get-*()

13 years agoRelease new version 0.3.83. v0.3.83
Michael Prokop [Thu, 10 Jun 2010 21:33:53 +0000 (23:33 +0200)]
Release new version 0.3.83.

13 years agozshrc: prefer external vcs_info if available, fall back to internal otherwise (thanks...
Michael Prokop [Thu, 10 Jun 2010 14:09:40 +0000 (16:09 +0200)]
zshrc: prefer external vcs_info if available, fall back to internal otherwise (thanks, ft)

13 years agozshrc: do not enable menu selection for directory-stack, this modifies ctrl-d behavio...
Michael Prokop [Thu, 10 Jun 2010 13:38:19 +0000 (15:38 +0200)]
zshrc: do not enable menu selection for directory-stack, this modifies ctrl-d behaviour as well

13 years agoRun VCS_INFO_check_com cvs inside VCS_INFO_cvs_detect.
Michael Prokop [Wed, 2 Jun 2010 21:21:47 +0000 (23:21 +0200)]
Run VCS_INFO_check_com cvs inside VCS_INFO_cvs_detect.

Thanks to Carsten Hey.

13 years agoRename _bkdate to insert-datestamp and enter date at cursor position instead of end...
Michael Prokop [Mon, 31 May 2010 16:25:04 +0000 (18:25 +0200)]
Rename _bkdate to insert-datestamp and enter date at cursor position instead of end of line.

Thanks to Martin Krafft for the inspiration.

13 years agoRelease version 0.3.82. v0.3.82
Michael Prokop [Thu, 27 May 2010 23:03:52 +0000 (01:03 +0200)]
Release version 0.3.82.

13 years agoFunction asc() for roadwarriors using GNU screen and ssh. Thanks to Axel Beckert.
Michael Prokop [Mon, 24 May 2010 22:50:44 +0000 (00:50 +0200)]
Function asc() for roadwarriors using GNU screen and ssh. Thanks to Axel Beckert.

13 years agoRelease version 0.3.81. v0.3.81
Michael Prokop [Thu, 20 May 2010 19:44:02 +0000 (21:44 +0200)]
Release version 0.3.81.

13 years agoSupport /etc/grml/screenrc in screen function for non-root users.
Michael Prokop [Thu, 20 May 2010 19:42:15 +0000 (21:42 +0200)]
Support /etc/grml/screenrc in screen function for non-root users.

14 years agodebian/changelog Update
Frank Terbeck [Sun, 14 Mar 2010 23:47:54 +0000 (00:47 +0100)]
debian/changelog Update

14 years agozshrc: add default values to changed() and new()
Carsten Hey [Sun, 14 Mar 2010 23:05:34 +0000 (00:05 +0100)]
zshrc: add default values to changed() and new()

Make changed() and new() display files changed/modified within the last
day if no argument was given

Signed-off-by: Carsten Hey <carsten@debian.org>
14 years agozshrc: add function changed()
Carsten Hey [Sun, 14 Mar 2010 23:04:24 +0000 (00:04 +0100)]
zshrc: add function changed()

Signed-off-by: Carsten Hey <carsten@debian.org>
14 years agozshrc: map backtab to reverse-menu-complete
Carsten Hey [Sun, 14 Mar 2010 23:02:06 +0000 (00:02 +0100)]
zshrc: map backtab to reverse-menu-complete

Signed-off-by: Carsten Hey <carsten@debian.org>
14 years agoRelease new version 0.3.80. v0.3.80
Michael Prokop [Thu, 11 Mar 2010 00:35:37 +0000 (01:35 +0100)]
Release new version 0.3.80.

14 years agozshrc: Make minimal-shellrc printf-free
Frank Terbeck [Wed, 10 Mar 2010 23:48:44 +0000 (00:48 +0100)]
zshrc: Make minimal-shellrc printf-free

One of the major reasons for `minimal-shell()' is to be able to use it
without /usr being mounted. But some OS vendors think it's smart to put
`printf' into /usr/bin - sed, of course happily lives in /bin. Debian
happens to think that's funny, too.

mksh doesn't make `printf' a builtin because it doesn't want to link
libm in (well, you can hack it in - but that's a discouraged non-
default). This replaces "printf '%s' foo' with "print -r -- foo", which
should resolve the issue for us nicely.

14 years agozshrc: Fixed `minimal-shell' function
Frank Terbeck [Wed, 10 Mar 2010 23:28:32 +0000 (00:28 +0100)]
zshrc: Fixed `minimal-shell' function

Well, it was actually completely broken. Because I fed an absolute path
name into `check_com()' without testing it - instead of using the
obvious test.

This also fixes an annoyance:

If infocmp returns an octal code such as this:
    backspace='\177'

That screwed up our special-string resolution, because mksh's `print'
builtin doesn't like \177 style octals. It *requires* them to look like
this: \0177 (leading zero).

We now just translate these strings like this:
    \\[1-7][0-7]*    =>   \\0[1-7][0-7]*

That should be fairly safe. - And this time, mika and me actually tested
the code before committing it. :-)

14 years agoDrop backupcopy option to avoid overwriting symlinks. Issue brought up by Ulrich...
Michael Prokop [Wed, 10 Mar 2010 22:53:00 +0000 (23:53 +0100)]
Drop backupcopy option to avoid overwriting symlinks. Issue brought up by Ulrich, thanks!

14 years agoMake our C-z shortcut smarter
Frank Terbeck [Wed, 3 Mar 2010 12:58:48 +0000 (13:58 +0100)]
Make our C-z shortcut smarter

14 years agoMake sure /bin/mksh is used in minimal-shell()
Frank Terbeck [Wed, 3 Mar 2010 11:34:40 +0000 (12:34 +0100)]
Make sure /bin/mksh is used in minimal-shell()

If that is not done, the `env' program may start a mksh from the
current directory, which we certainly do not want. At all.

14 years agogrmlzshrc.t2t: Updated minimal-shell entry
Frank Terbeck [Mon, 1 Mar 2010 18:05:23 +0000 (19:05 +0100)]
grmlzshrc.t2t: Updated minimal-shell entry

14 years agozshrc: Switch `minimal-shell()' from ksh93 to mksh
Frank Terbeck [Mon, 1 Mar 2010 16:50:10 +0000 (17:50 +0100)]
zshrc: Switch `minimal-shell()' from ksh93 to mksh

As announced in:
    <http://ml.grml.org/pipermail/grml-devel/2010-February/000011.html>

The minimal-shell() function now checks if the shell in question (mksh)
is available and if so, executes it with an empty environment, with only
TERM and HOME set. The mksh setup used sets a number of other
environment variables (such as $VISUAL, $EDITOR and $PAGER).

One added feature is that the mksh prompt shows non-zero return values
from programs you ran:

[snip]
    (3)-~$ false
    [1]-(4)-~$ true
    (5)-~$
[snap]

The prompt does *not* feature any eye-candy such as standout or colour
sequences. It should therefore run in pretty much every terminal.

Special keys are set up via terminfo if `infocmp' is available.
Otherwise mksh's rather sane defaults are used.