grml-etc-core.git
7 years agoRelease new version 0.12.6 v0.12.6
Michael Prokop [Sat, 30 Apr 2016 21:39:38 +0000 (23:39 +0200)]
Release new version 0.12.6

7 years agoBump Standards-Version to 3.9.7
Michael Prokop [Sat, 30 Apr 2016 21:39:27 +0000 (23:39 +0200)]
Bump Standards-Version to 3.9.7

7 years agozshrc: check_com() fixed and zshified
Thilo Six [Sat, 30 Apr 2016 11:39:05 +0000 (13:39 +0200)]
zshrc: check_com() fixed and zshified

* FIX: in the elif a shift was missing
* MOD: use '(( ${+' instead of '[[ -n ${'
  One thing though: I tried to verify since when Zsh supports that.
  Currently i do not know where to get that from.
* FIX: add -g to help message

8 years agogrmlzshrc.5: Clarify where to set the enable style
Frank Terbeck [Sat, 23 Jan 2016 14:57:51 +0000 (15:57 +0100)]
grmlzshrc.5: Clarify where to set the enable style

8 years agozshrc: Add a setting to avoid the persistent dirstack feature to be activated
Frank Terbeck [Sat, 23 Jan 2016 14:46:20 +0000 (15:46 +0100)]
zshrc: Add a setting to avoid the persistent dirstack feature to be activated

Apparently, there are still problems with automounters and slow/buggy
network file systems. This style makes it possible to disable the
feature altogether.

8 years agozshrc: Make the default of 'filter-on-load' match docs
Frank Terbeck [Sat, 23 Jan 2016 14:42:29 +0000 (15:42 +0100)]
zshrc: Make the default of 'filter-on-load' match docs

8 years agoRelease new version 0.12.5 v0.12.5
Michael Prokop [Tue, 5 Jan 2016 21:44:56 +0000 (22:44 +0100)]
Release new version 0.12.5

8 years agoSync to zsh-lookup upstream repository
Frank Terbeck [Tue, 5 Jan 2016 17:16:24 +0000 (18:16 +0100)]
Sync to zsh-lookup upstream repository

This fixes a bunch of warnings with zsh's new warn_create_global
behaviour.

8 years agoSwitch screenrc_* to UTF8 encoding
Michael Prokop [Mon, 30 Nov 2015 13:26:39 +0000 (14:26 +0100)]
Switch screenrc_* to UTF8 encoding

Hello 2015, 2016 is looking around the corner.

8 years agotmux: remove obsolete mouse-select-pane option
Sebastian Boehm [Tue, 3 Nov 2015 16:27:41 +0000 (17:27 +0100)]
tmux: remove obsolete mouse-select-pane option

8 years agoRelease new version 0.12.4 v0.12.4
Michael Prokop [Wed, 21 Oct 2015 21:23:18 +0000 (23:23 +0200)]
Release new version 0.12.4

8 years agozshrc: Remove unused parameter $ZSHDIR
Frank Terbeck [Fri, 9 Oct 2015 14:17:32 +0000 (16:17 +0200)]
zshrc: Remove unused parameter $ZSHDIR

It was only used with the previous cache setup. The new setup
now uses ${ZDOTDIR:-$HOME} like everything else in the zshrc does.

Signed-off-by: Frank Terbeck <ft@grml.org>
8 years agozshrc: Add more robustness to completion caching setup [Closes: issue1933]
Frank Terbeck [Fri, 9 Oct 2015 14:16:16 +0000 (16:16 +0200)]
zshrc: Add more robustness to completion caching setup [Closes: issue1933]

This is based on a suggestion by Thilo Six <tech@xk2c.de>.

The setup now uses $GRML_COMP_CACHING to decide on whether to configure
caching at all and $GRML_COMP_CACHE_DIR to tell where to put the caching
data.

It also makes sure the caching directory actually exists before using it.

See the included documentation for details.

Signed-off-by: Frank Terbeck <ft@grml.org>
8 years agogrmlzshrc.t2t: update docs on screen alias
Dmitri Vereshchagin [Wed, 23 Sep 2015 20:11:00 +0000 (23:11 +0300)]
grmlzshrc.t2t: update docs on screen alias

8 years agozshrc: fix screen alias
Dmitri Vereshchagin [Tue, 22 Sep 2015 05:52:24 +0000 (08:52 +0300)]
zshrc: fix screen alias

- Using `${commands[screen]}' which is expanded in double quotes makes
  it impossible to use custom screen installation or wrapper.  Use
  `screen' instead.

- Screen reads configuration from $HOME/.screenrc by default so it is
  redundant to set alias for this.

8 years agogrmlzshrc.5: Remove documentation for allulimit
Frank Terbeck [Sun, 27 Sep 2015 11:38:11 +0000 (13:38 +0200)]
grmlzshrc.5: Remove documentation for allulimit

8 years agozshrc: Leave all limits alone
Frank Terbeck [Sun, 27 Sep 2015 08:45:35 +0000 (10:45 +0200)]
zshrc: Leave all limits alone

Except for when we're running off of a live medium. In that case still
disable core-dumps. Other than that, it's up to the user to change their
limit settings from the defaults the system provides.

8 years agozshrc: Remove "allulimit" function
Frank Terbeck [Sun, 27 Sep 2015 08:43:01 +0000 (10:43 +0200)]
zshrc: Remove "allulimit" function

It basically does the same thing as the "unlimit" builtin zsh provides.
Just less flexible.

8 years agotmux: background a window, reload config, improve binding
Bernhard Tittelbach [Mon, 7 Sep 2015 22:04:12 +0000 (00:04 +0200)]
tmux: background a window, reload config, improve binding

8 years agozsh: Update Lookup functions from upstream
Frank Terbeck [Fri, 4 Sep 2015 22:01:30 +0000 (00:01 +0200)]
zsh: Update Lookup functions from upstream

This adds the -G option to the gmane backend and fixes a syntax
error in the usenet backend

8 years agoRelease new version 0.12.3 v0.12.3
Michael Prokop [Tue, 11 Aug 2015 10:28:30 +0000 (12:28 +0200)]
Release new version 0.12.3

8 years agozshrc,dirstack: Remove useless test
Frank Terbeck [Tue, 11 Aug 2015 10:07:59 +0000 (12:07 +0200)]
zshrc,dirstack: Remove useless test

At this point, $dirstack is always empty so the test is always true.

8 years agozshrc, dirstack: Avoid chpwd() upon the very first cd calls
Frank Terbeck [Tue, 11 Aug 2015 10:07:22 +0000 (12:07 +0200)]
zshrc, dirstack: Avoid chpwd() upon the very first cd calls

8 years agoRelease new version 0.12.2 v0.12.2
Michael Prokop [Wed, 8 Jul 2015 08:32:10 +0000 (10:32 +0200)]
Release new version 0.12.2

8 years agozshrc: drop 'setopt nonomatch' configuration
Michael Prokop [Fri, 26 Jun 2015 12:27:43 +0000 (14:27 +0200)]
zshrc: drop 'setopt nonomatch' configuration

This is something many experienced Zsh users sometimes complain
about for our config, so let's get this fixed.

The behaviour of 'setopt nonomatch' brings the Zsh behaviour
closer to what Bash does, though people should get used to proper
quoting and get the default Zsh behaviour also with grml-zshrc.

Short explanation for the behaviour of 'setopt nonomatch' by Frank:

| If there's no *.txt in $PWD that command line will not execute with Zsh's default behaviour. You have to quote: "*.txt"
| If there *is* a *.txt file in $PWD, the command will not work as expected: Thus quoting makes the call sane.
| nonomatch makes that expansion as it is done in bash: *.txt => No match? => insert '*.txt'

Short demonstration:

| % setopt nonomatch
| % for f in *.foo ; echo $f
| *.foo
| % setopt nomatch
| % for f in *.foo ; echo $f
| zsh: no matches found: *.foo

The setting is provided as an example in etc/skel/.zshrc now.

Signed-off-by: Michael Prokop <mika@grml.org>
Acked-By: Frank Terbeck <ft@grml.org>
Acked-By: Evgeni Golov <evgeni@grml.org>
8 years agoDocumentation for configuring persistent dirstack filters
Frank Terbeck [Fri, 26 Jun 2015 12:14:33 +0000 (14:14 +0200)]
Documentation for configuring persistent dirstack filters

8 years agoRewrite large parts of persistent dirstack handling
Frank Terbeck [Fri, 26 Jun 2015 12:07:54 +0000 (14:07 +0200)]
Rewrite large parts of persistent dirstack handling

In order to allow filtering what gets committed to the persistent
dirstack, I ended up rewriting the handling altogether.

In order to keep a filtered dirstack, we can't actually derive what gets
saved from $dirstack, unless we'd like to apply the filter to all
entries of the stack each time we're about to save the data to disk.

This uses a new parameter $GRML_PERSISTENT_DIRSTACK, which is our
filtered representation of the actual dirstack.

This code allows for using the same filters after *reading* the saved
dirstack from file while the setup is loading (don't worry, a manual
update with examples is coming up).

On the plus side, this removes the dreaded uprint utility, that we ONLY
used in chpwd when saving dirstack to a file. With this new code, the
GRML_PERSISTENT_DIRSTACK parameter use the -U flag of typeset, which
keeps it unique the whole time.

8 years agoMarking an array for export serves no purpose
Frank Terbeck [Fri, 26 Jun 2015 10:00:14 +0000 (12:00 +0200)]
Marking an array for export serves no purpose

These are remnants of me not completely understanding the way that scope
works in shells. I'll remove these whenever I see them.

8 years agoWeed out non-existing directories when loading DIRSTACKFILE
Frank Terbeck [Fri, 26 Jun 2015 09:38:33 +0000 (11:38 +0200)]
Weed out non-existing directories when loading DIRSTACKFILE

Between saving our persistent dirstack file and loading it in the next
session, directories of which the names we saved might have ceased to
exist. This can cause problems, when the first entry from the saved
dirstack points to a non-existing directory.

Ordinarily, that would not be catastrophic and only lead to an error
message while loading the setup. But if you throw auto-mounters into the
mix, this can cause the setup to hang until the auto-mounter runs into a
timeout.

The proposed fix is to filter out names of non-existing directories
while loading the saved dirstack file.

This leaves the window between loading the file and trying to change to
the first then-existing directory of the file open for the directory to
vanish. That would be tough luck, I guess.

Reported-by: Till Hofmann <hofmanntill@gmail.com>
Signed-off-by: Frank Terbeck <ft@grml.org>
8 years agozshrc: Start/Restart/Stop/... functions: use `service` wrapper if available
Michael Prokop [Wed, 24 Jun 2015 11:09:23 +0000 (13:09 +0200)]
zshrc: Start/Restart/Stop/... functions: use `service` wrapper if available

Instead of directly invoking the init script rely on service(8)
(as shipped by sysvinit-utils) if it's available

8 years agoRelease new version 0.12.1 v0.12.1
Michael Prokop [Tue, 16 Jun 2015 09:11:11 +0000 (11:11 +0200)]
Release new version 0.12.1

8 years agodoc: replace unused $SHELL with zsh
Michael Prokop [Tue, 16 Jun 2015 09:10:32 +0000 (11:10 +0200)]
doc: replace unused $SHELL with zsh

8 years agozshrc: no longer explicitly set SHELL
Michael Prokop [Tue, 16 Jun 2015 09:06:44 +0000 (11:06 +0200)]
zshrc: no longer explicitly set SHELL

This was needed as a workaround for aterm, rxvt,..
Hopefully this isn't needed anymore, instead we're
running into issues like #788819 where an unreachable
$SHELL is causing problems with other tools.

8 years agosll() updated
Thilo Six [Sun, 24 May 2015 19:45:46 +0000 (21:45 +0200)]
sll() updated

* detect symlink loops
* additionaly display details about final link target

Acked-By: Frank Terbeck <ft@grml.org>
8 years agoRelease new version 0.12.0 v0.12.0
Michael Prokop [Fri, 5 Jun 2015 23:44:58 +0000 (01:44 +0200)]
Release new version 0.12.0

8 years agoAdd static version of add-zsh-hook
Frank Terbeck [Fri, 5 Jun 2015 23:09:41 +0000 (01:09 +0200)]
Add static version of add-zsh-hook

This adds a static version of the ‘add-zsh-hook’ function from zsh
upstream. It is included for now to make the setup work with older
versions of zsh (prior to 4.3.7) in which this function had a bug that
triggers annoying errors during shell startup.

This is exactly upstreams code from f0068edb4888a4d8fe94def, with just a
few adjustments in coding style to make the function look more compact.
This definition can be removed as soon as we raise the minimum version
requirement to 4.3.7 or newer.

8 years agozshrc: simplify cdt()
Moviuro [Wed, 3 Jun 2015 21:48:35 +0000 (23:48 +0200)]
zshrc: simplify cdt()

8 years agozshenv: avoid placing empty components in PATH; reorder root's PATH
Dr. András Korn [Mon, 1 Jun 2015 09:12:40 +0000 (11:12 +0200)]
zshenv: avoid placing empty components in PATH; reorder root's PATH

zsh treats an empty PATH component ("::") as ".", which creates a
security hole. Sanitize PATH by explicitly removing empty
components.

As agreed on #grml, root's PATH should also list /usr/local/sbin
and /usr/local/bin before /sbin, /bin, /usr/sbin and /usr/bin;
and there is no harm in adding $HOME/bin unconditionally as the
first PATH component.

8 years agozshrc: add support for `fetch' in simple-extract()
Moviuro [Wed, 22 Apr 2015 22:08:05 +0000 (00:08 +0200)]
zshrc: add support for `fetch' in simple-extract()

`fetch` is FreeBSD's default utility to download things

8 years agofix ssh remote host name completion with more than one pattern
Christian Hesse [Mon, 18 May 2015 21:44:17 +0000 (23:44 +0200)]
fix ssh remote host name completion with more than one pattern

Host declaration may contain more than one pattern given after the
keyword, separated by whitespaces. For correct completion split the
string.

Signed-off-by: Christian Hesse <mail@eworm.de>
8 years agoAvoid cluttering enviroment [Closes: issue1350]
Thilo Six [Thu, 14 May 2015 12:54:08 +0000 (14:54 +0200)]
Avoid cluttering enviroment [Closes: issue1350]

* Removed some variables from entering running zsh environment
* Renamed temporary variable 'color' in a for loop to 'var'

8 years agoREADME.md: curl(1) now follows redirects
Thomas Berger [Fri, 15 May 2015 10:01:36 +0000 (12:01 +0200)]
README.md: curl(1) now follows redirects

8 years agozshrc: drop insecure options from curl/wget cmdlines in simple-extract()
Michael Prokop [Thu, 7 May 2015 13:26:15 +0000 (15:26 +0200)]
zshrc: drop insecure options from curl/wget cmdlines in simple-extract()

8 years agozshrc: Correct comment sentences
Michael Vetter [Mon, 4 May 2015 19:10:41 +0000 (21:10 +0200)]
zshrc: Correct comment sentences

9 years agozshrc: `cat' is not needed in the `cat <<' syntax
Moviuro [Wed, 22 Apr 2015 21:14:55 +0000 (23:14 +0200)]
zshrc: `cat' is not needed in the `cat <<' syntax

9 years agozshrc: unify cat<< syntax
Moviuro [Tue, 14 Apr 2015 19:17:08 +0000 (21:17 +0200)]
zshrc: unify cat<< syntax

9 years agozshrc: bk(): don't use while but for
Moviuro [Tue, 14 Apr 2015 19:10:17 +0000 (21:10 +0200)]
zshrc: bk(): don't use while but for

9 years agominimal-shellrc: we make sure that aliases refer to 'command ls'
Moviuro [Mon, 13 Apr 2015 18:42:56 +0000 (20:42 +0200)]
minimal-shellrc: we make sure that aliases refer to 'command ls'

(cherry picked from commit b7c4fe4ebfdc4f24d47b2f25bc3605229c19ecd5)

Closes #38 @ github

9 years agozshrc: bk(): better usage/help handling
Moviuro [Sun, 12 Apr 2015 10:33:06 +0000 (12:33 +0200)]
zshrc: bk(): better usage/help handling

(cherry picked from commit d5c988cdc11d6fc07146e25058f182ee1f94a4a4)

Closes #36 @ github

9 years agozshrc: we use getopts on salias()
Moviuro [Sun, 12 Apr 2015 10:32:36 +0000 (12:32 +0200)]
zshrc: we use getopts on salias()

(cherry picked from commit 89722563578cb8d48678f9db57fb987278283be8)

Closes #35 @ github

9 years agoRelease new version 0.11.2 v0.11.2
Michael Prokop [Mon, 13 Apr 2015 07:32:28 +0000 (09:32 +0200)]
Release new version 0.11.2

9 years agominimal-shellrc: sync ls related alias behaviour with main zshrc
Michael Prokop [Mon, 13 Apr 2015 07:26:12 +0000 (09:26 +0200)]
minimal-shellrc: sync ls related alias behaviour with main zshrc

9 years agozshrc/grmlzshrc.t2t: update docs related to '-F' removal from ls aliases
Michael Prokop [Mon, 13 Apr 2015 07:25:39 +0000 (09:25 +0200)]
zshrc/grmlzshrc.t2t: update docs related to '-F' removal from ls aliases

9 years agozshrc: drop '-F' from ls alias 'l' also when running in dump $TERM
Michael Prokop [Mon, 13 Apr 2015 07:19:17 +0000 (09:19 +0200)]
zshrc: drop '-F' from ls alias 'l' also when running in dump $TERM

Related to PR #32

9 years agozshrc: simplify ls alias setup; remove -F from ls aliases
Moviuro [Sun, 12 Apr 2015 12:16:32 +0000 (14:16 +0200)]
zshrc: simplify ls alias setup; remove -F from ls aliases

To add `-F` to your aliases, use the following in .zshrc.pre:

  typeset -ga ls_options
  ls_options=( -F )

(cherry picked from commit 189949c6aa3a0d140a10d8e1c3914887bd4c0057)

NOTE from Michael Prokop (merging the PR to the Grml git repository):
This unifies the behaviour of ls output, we should either use '-F'
everywhere or not at all in our provided ls related aliases.
Thanks to Christian Hesse for triggering this via PR #32

9 years agozshrc: don't overwrite {ls,grep}_options set in .zshrc.pre
Moviuro [Sun, 12 Apr 2015 12:12:02 +0000 (14:12 +0200)]
zshrc: don't overwrite {ls,grep}_options set in .zshrc.pre

(cherry picked from commit 57b7364b7da842f486c85f7abae6ce457a23cc5c)

9 years agozshrc: new bk() option '-ra' to removal all (even hidden) backups
Moviuro [Mon, 23 Feb 2015 19:52:43 +0000 (20:52 +0100)]
zshrc: new bk() option '-ra' to removal all (even hidden) backups

Note by Michael Prokop (merging the PR to the Grml git repository):
Squashed cherry picked commits,
cherry picked from commit 16070c45ece05b6425fe1ca615a3b2ccee1f419b +
cherry picked from commit ab7fe4c8d1b112c4c00dfd0e4a3c4d534a28297a

9 years agoadd issolaris()
Csillag Tamas [Thu, 9 Apr 2015 15:39:16 +0000 (17:39 +0200)]
add issolaris()

9 years agoFix broken variable assignment [Closes: issue1347]
Frank Terbeck [Tue, 31 Mar 2015 17:30:16 +0000 (19:30 +0200)]
Fix broken variable assignment [Closes: issue1347]

Reported and fix suggested my Manfred Lotz

9 years agoRelease new version 0.11.1 v0.11.1
Michael Prokop [Mon, 23 Mar 2015 08:00:53 +0000 (09:00 +0100)]
Release new version 0.11.1

9 years agozshrc: purge: clean core.pid files
Bernhard Tittelbach [Thu, 19 Mar 2015 10:43:25 +0000 (11:43 +0100)]
zshrc: purge: clean core.pid files

9 years agoRemove ‘tail’ from list of _gnu_generic commands
Frank Terbeck [Tue, 17 Mar 2015 21:31:20 +0000 (22:31 +0100)]
Remove ‘tail’ from list of _gnu_generic commands

Turns out, that _gnu_generic doesn't handle GNU tail's --help
output all that well.  If someone wants completion for tail,
send a specialised _tail function to zsh's development list.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780531 as well.

9 years agoRelease new version 0.11.0 v0.11.0
Michael Prokop [Mon, 9 Feb 2015 05:29:39 +0000 (06:29 +0100)]
Release new version 0.11.0

9 years agogrmlzshrc.t2t: update bk() information
Moviuro [Sun, 8 Feb 2015 23:26:43 +0000 (00:26 +0100)]
grmlzshrc.t2t: update bk() information

9 years agozshrc: remove weird whitespace
Moviuro [Sun, 8 Feb 2015 23:15:58 +0000 (00:15 +0100)]
zshrc: remove weird whitespace

9 years agozshrc: Fix indentation
Moviuro [Sat, 7 Feb 2015 23:38:33 +0000 (00:38 +0100)]
zshrc: Fix indentation

9 years agozshrc: removed extra `;'
Moviuro [Sat, 7 Feb 2015 23:19:05 +0000 (00:19 +0100)]
zshrc: removed extra `;'

9 years agozshrc: using `<' instead of `cat'
Moviuro [Sat, 7 Feb 2015 23:07:40 +0000 (00:07 +0100)]
zshrc: using `<' instead of `cat'

9 years agozshrc: read host for ssh command completion from config
Christian Sturm [Sat, 7 Feb 2015 13:03:10 +0000 (14:03 +0100)]
zshrc: read host for ssh command completion from config

9 years agozshrc: bk gets a remove option that cleans backups
Moviuro [Sun, 4 Jan 2015 22:02:44 +0000 (23:02 +0100)]
zshrc: bk gets a remove option that cleans backups

9 years agozshrc: bk() now works on directories with trailing /
Moviuro [Sun, 4 Jan 2015 21:39:06 +0000 (22:39 +0100)]
zshrc: bk() now works on directories with trailing /

9 years agozshrc: bk() update
Moviuro [Sat, 3 Jan 2015 11:20:36 +0000 (12:20 +0100)]
zshrc: bk() update

  * Added usage
  * Added move option (uses mv(1) instead of cp(1))
  * Added verbose option

9 years agozshrc: Fixed OpenBSD battery function
Moviuro [Mon, 22 Dec 2014 09:01:34 +0000 (10:01 +0100)]
zshrc: Fixed OpenBSD battery function

It displayed some warnings when it couldn't access the battery information

9 years agozshrc: removed duplicate line
Moviuro [Tue, 16 Dec 2014 08:13:12 +0000 (09:13 +0100)]
zshrc: removed duplicate line

9 years agozshrc: drop j alias (used for 'jobs -l') [Closes: issue1338]
Michael Prokop [Fri, 19 Dec 2014 11:39:25 +0000 (12:39 +0100)]
zshrc: drop j alias (used for 'jobs -l') [Closes: issue1338]

Single key aliases shouldn't be part of our default configuration,
instead they should be personal preferences.

9 years agozshrc: updating bk()
Moviuro [Mon, 15 Dec 2014 09:04:35 +0000 (10:04 +0100)]
zshrc: updating bk()

  * using fully POSIX date on all OSes
  * the former openbsd command becomes the fallback solution

9 years agozshrc: bk() gets FreeBSD support
Moviuro [Mon, 1 Dec 2014 00:56:11 +0000 (01:56 +0100)]
zshrc: bk() gets FreeBSD support

9 years agozshrc: bk() gets support for multiple files/folders
Moviuro [Mon, 1 Dec 2014 00:41:40 +0000 (01:41 +0100)]
zshrc: bk() gets support for multiple files/folders

9 years agozshrc: began rewriting bk()
Moviuro [Mon, 1 Dec 2014 00:40:46 +0000 (01:40 +0100)]
zshrc: began rewriting bk()

  * now supports folders
  * only supports linux and OpenBSD so far, more to come

9 years agoRelease new version 0.10.3 v0.10.3
Michael Prokop [Tue, 7 Oct 2014 07:59:21 +0000 (09:59 +0200)]
Release new version 0.10.3

9 years agozshrc: fixed the FreeBSD battery function
Moviuro [Fri, 3 Oct 2014 15:24:20 +0000 (17:24 +0200)]
zshrc: fixed the FreeBSD battery function

Even if there are no batteries and/or /dev/acpi is unavailable, the function won't print =% =%

9 years agoRelease new version 0.10.2 v0.10.2
Michael Prokop [Thu, 2 Oct 2014 09:41:24 +0000 (11:41 +0200)]
Release new version 0.10.2

9 years agozshrc: drop templ/tt hash definitions
Michael Prokop [Thu, 25 Sep 2014 19:02:13 +0000 (21:02 +0200)]
zshrc: drop templ/tt hash definitions

I'm pretty sure no one is using them, let's get rid of them.

9 years agozshrc: little fixes
Moviuro [Tue, 23 Sep 2014 06:04:16 +0000 (08:04 +0200)]
zshrc: little fixes

Missing local variable
Changed a '! -z' to '-n' test

9 years agozshrc: Added a missing test on OSX battery function
Moviuro [Tue, 23 Sep 2014 05:59:22 +0000 (07:59 +0200)]
zshrc: Added a missing test on OSX battery function

9 years agoRelease new version 0.10.1 v0.10.1
Michael Prokop [Mon, 22 Sep 2014 12:20:55 +0000 (14:20 +0200)]
Release new version 0.10.1

9 years agoBump Standards-Version to 3.9.6
Michael Prokop [Mon, 22 Sep 2014 12:15:59 +0000 (14:15 +0200)]
Bump Standards-Version to 3.9.6

9 years agozshenv: rework and unify $PATH handling
Michael Prokop [Mon, 22 Sep 2014 12:06:02 +0000 (14:06 +0200)]
zshenv: rework and unify $PATH handling

Do not overwrite existing $PATH but extend it.
While at it unify its handling and get rid of
deprecated directories (/usr/X11R6/bin + /usr/NX/bin).

Thanks for review, ft.

9 years agozshenv: update live system paths for usage of $ADDONS inside $PATH
Michael Prokop [Mon, 22 Sep 2014 10:21:32 +0000 (12:21 +0200)]
zshenv: update live system paths for usage of $ADDONS inside $PATH

Neither /cdrom/addons nor /live/image/addons exists
in todays live systems. The addons also usually don't
contain any executables, so there's no point in adding
this directory to $PATH, instead support the scripts
directory which is useful with custom scripts without
having to fully remaster the Grml ISO.

9 years agozshenv: switch preference order of lesspipe.sh vs lesspipe
Michael Prokop [Mon, 22 Sep 2014 08:12:50 +0000 (10:12 +0200)]
zshenv: switch preference order of lesspipe.sh vs lesspipe

The lesspipe script as shipped by the less package itself seems
to be better maintained nowadays than the lesspipe.sh script
as shipped with the grml-script-core package.

While lesspipe.sh supports the "less $archive:$file" workflow to
display a file inside an archive, which isn't supported by
lesspipe yet, it sadly fails on more common tasks like with our
dchange function on recent Debian versions. E.g. 'dchange vim'
just displays:

| ==> append : to filename to view the UTF-8 encoded data

on Debian/jessie instead of displaying content of
/usr/share/doc/vim/changelog.Debian.gz.

While at it make the check for lesspipe path agnostic,
thanks Frank Terbeck <ft@grml.org> for assistance.

9 years agoRelease new version 0.10.0 v0.10.0
Michael Prokop [Thu, 18 Sep 2014 10:22:59 +0000 (12:22 +0200)]
Release new version 0.10.0

9 years agogrmlzshrc.5: minor typo fixes and update timestamp
Michael Prokop [Thu, 18 Sep 2014 10:20:52 +0000 (12:20 +0200)]
grmlzshrc.5: minor typo fixes and update timestamp

9 years agozshrc: make sure to not alias already aliased ls commands
Michael Prokop [Thu, 18 Sep 2014 10:10:43 +0000 (12:10 +0200)]
zshrc: make sure to not alias already aliased ls commands

Thanks to Moviuro <moviuro+grml@gmail.com> for spotting,
thanks to Frank Terbeck <ft@grml.org> for reviewing.

9 years agoRun wrap-and-sort on the debian directory
Michael Prokop [Thu, 18 Sep 2014 10:05:35 +0000 (12:05 +0200)]
Run wrap-and-sort on the debian directory

9 years agogrmlzshrc.5: updated GRML_DISPLAY_BATTERY information
Moviuro [Wed, 17 Sep 2014 23:01:23 +0000 (01:01 +0200)]
grmlzshrc.5: updated GRML_DISPLAY_BATTERY information

9 years agozshrc: added Darwin support for battery info
Moviuro [Wed, 17 Sep 2014 23:00:44 +0000 (01:00 +0200)]
zshrc: added Darwin support for battery info

9 years agogrmlzshrc.5: added the new OS recognition functions
Moviuro [Wed, 17 Sep 2014 15:45:12 +0000 (17:45 +0200)]
grmlzshrc.5: added the new OS recognition functions

9 years agozshrc: moved the unsupported OSes for the battery info in the battery function
Moviuro [Tue, 16 Sep 2014 11:49:28 +0000 (13:49 +0200)]
zshrc: moved the unsupported OSes for the battery info in the battery function

9 years agozshrc: added FreeBSD support for battery info
Moviuro [Tue, 16 Sep 2014 11:42:50 +0000 (13:42 +0200)]
zshrc: added FreeBSD support for battery info

9 years agozshrc: added OpenBSD support for battery info
Moviuro [Mon, 15 Sep 2014 17:58:13 +0000 (19:58 +0200)]
zshrc: added OpenBSD support for battery info