Michael Prokop [Tue, 16 Jun 2015 09:11:11 +0000 (11:11 +0200)]
Release new version 0.12.1
Michael Prokop [Tue, 16 Jun 2015 09:10:32 +0000 (11:10 +0200)]
doc: replace unused $SHELL with zsh
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.
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>
Michael Prokop [Fri, 5 Jun 2015 23:44:58 +0000 (01:44 +0200)]
Release new version 0.12.0
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.
Moviuro [Wed, 3 Jun 2015 21:48:35 +0000 (23:48 +0200)]
zshrc: simplify cdt()
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.
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
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>
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'
Thomas Berger [Fri, 15 May 2015 10:01:36 +0000 (12:01 +0200)]
README.md: curl(1) now follows redirects
Michael Prokop [Thu, 7 May 2015 13:26:15 +0000 (15:26 +0200)]
zshrc: drop insecure options from curl/wget cmdlines in simple-extract()
Michael Vetter [Mon, 4 May 2015 19:10:41 +0000 (21:10 +0200)]
zshrc: Correct comment sentences
Moviuro [Wed, 22 Apr 2015 21:14:55 +0000 (23:14 +0200)]
zshrc: `cat' is not needed in the `cat <<' syntax
Moviuro [Tue, 14 Apr 2015 19:17:08 +0000 (21:17 +0200)]
zshrc: unify cat<< syntax
Moviuro [Tue, 14 Apr 2015 19:10:17 +0000 (21:10 +0200)]
zshrc: bk(): don't use while but for
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
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
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
Michael Prokop [Mon, 13 Apr 2015 07:32:28 +0000 (09:32 +0200)]
Release new version 0.11.2
Michael Prokop [Mon, 13 Apr 2015 07:26:12 +0000 (09:26 +0200)]
minimal-shellrc: sync ls related alias behaviour with main zshrc
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
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
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
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)
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
Csillag Tamas [Thu, 9 Apr 2015 15:39:16 +0000 (17:39 +0200)]
add issolaris()
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
Michael Prokop [Mon, 23 Mar 2015 08:00:53 +0000 (09:00 +0100)]
Release new version 0.11.1
Bernhard Tittelbach [Thu, 19 Mar 2015 10:43:25 +0000 (11:43 +0100)]
zshrc: purge: clean core.pid files
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.
Michael Prokop [Mon, 9 Feb 2015 05:29:39 +0000 (06:29 +0100)]
Release new version 0.11.0
Moviuro [Sun, 8 Feb 2015 23:26:43 +0000 (00:26 +0100)]
grmlzshrc.t2t: update bk() information
Moviuro [Sun, 8 Feb 2015 23:15:58 +0000 (00:15 +0100)]
zshrc: remove weird whitespace
Moviuro [Sat, 7 Feb 2015 23:38:33 +0000 (00:38 +0100)]
zshrc: Fix indentation
Moviuro [Sat, 7 Feb 2015 23:19:05 +0000 (00:19 +0100)]
zshrc: removed extra `;'
Moviuro [Sat, 7 Feb 2015 23:07:40 +0000 (00:07 +0100)]
zshrc: using `<' instead of `cat'
Christian Sturm [Sat, 7 Feb 2015 13:03:10 +0000 (14:03 +0100)]
zshrc: read host for ssh command completion from config
Moviuro [Sun, 4 Jan 2015 22:02:44 +0000 (23:02 +0100)]
zshrc: bk gets a remove option that cleans backups
Moviuro [Sun, 4 Jan 2015 21:39:06 +0000 (22:39 +0100)]
zshrc: bk() now works on directories with trailing /
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
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
Moviuro [Tue, 16 Dec 2014 08:13:12 +0000 (09:13 +0100)]
zshrc: removed duplicate line
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.
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
Moviuro [Mon, 1 Dec 2014 00:56:11 +0000 (01:56 +0100)]
zshrc: bk() gets FreeBSD support
Moviuro [Mon, 1 Dec 2014 00:41:40 +0000 (01:41 +0100)]
zshrc: bk() gets support for multiple files/folders
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
Michael Prokop [Tue, 7 Oct 2014 07:59:21 +0000 (09:59 +0200)]
Release new version 0.10.3
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 =% =%
Michael Prokop [Thu, 2 Oct 2014 09:41:24 +0000 (11:41 +0200)]
Release new version 0.10.2
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.
Moviuro [Tue, 23 Sep 2014 06:04:16 +0000 (08:04 +0200)]
zshrc: little fixes
Missing local variable
Changed a '! -z' to '-n' test
Moviuro [Tue, 23 Sep 2014 05:59:22 +0000 (07:59 +0200)]
zshrc: Added a missing test on OSX battery function
Michael Prokop [Mon, 22 Sep 2014 12:20:55 +0000 (14:20 +0200)]
Release new version 0.10.1
Michael Prokop [Mon, 22 Sep 2014 12:15:59 +0000 (14:15 +0200)]
Bump Standards-Version to 3.9.6
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.
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.
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.
Michael Prokop [Thu, 18 Sep 2014 10:22:59 +0000 (12:22 +0200)]
Release new version 0.10.0
Michael Prokop [Thu, 18 Sep 2014 10:20:52 +0000 (12:20 +0200)]
grmlzshrc.5: minor typo fixes and update timestamp
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.
Michael Prokop [Thu, 18 Sep 2014 10:05:35 +0000 (12:05 +0200)]
Run wrap-and-sort on the debian directory
Moviuro [Wed, 17 Sep 2014 23:01:23 +0000 (01:01 +0200)]
grmlzshrc.5: updated GRML_DISPLAY_BATTERY information
Moviuro [Wed, 17 Sep 2014 23:00:44 +0000 (01:00 +0200)]
zshrc: added Darwin support for battery info
Moviuro [Wed, 17 Sep 2014 15:45:12 +0000 (17:45 +0200)]
grmlzshrc.5: added the new OS recognition functions
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
Moviuro [Tue, 16 Sep 2014 11:42:50 +0000 (13:42 +0200)]
zshrc: added FreeBSD support for battery info
Moviuro [Mon, 15 Sep 2014 17:58:13 +0000 (19:58 +0200)]
zshrc: added OpenBSD support for battery info
Frank Terbeck [Mon, 15 Sep 2014 12:34:51 +0000 (14:34 +0200)]
zshrc: Send error output to devnull in grep-option detection
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 15 Sep 2014 11:12:33 +0000 (13:12 +0200)]
grmlzshrc.5: Update manual wrt $BATTERY and $GRML_DISPLAY_BATTERY
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 15 Sep 2014 11:11:43 +0000 (13:11 +0200)]
zshrc: Add fallback to $BATTERY for backwards compatibility
Signed-off-by: Frank Terbeck <ft@grml.org>
Moviuro [Mon, 15 Sep 2014 10:18:21 +0000 (12:18 +0200)]
zshrc: converted to UTF-8
Moviuro [Mon, 15 Sep 2014 10:16:38 +0000 (12:16 +0200)]
zshrc: renamed allcaps variable
BATTERY becomes GRML_DISPLAY_BATTERY
PERCENT becomes GRML_BATTERY_LEVEL
Moviuro [Mon, 15 Sep 2014 10:11:26 +0000 (12:11 +0200)]
zshrc: rewrite battery function
Now supports multiple batteries
Now indicates status (^ Charging, v Discharging, = Full or Unknown)
Now supports different functions for different OSes
TODO: add configurability (zstyle, etc.)
TODO: add support for other OSes (ATM, only Linux is supported)
Moviuro [Mon, 15 Sep 2014 10:07:37 +0000 (12:07 +0200)]
zshrc: updated OS recognition functions
TODO: add more to the list (e.g. *BSDs, Solaris...)
Moviuro [Thu, 11 Sep 2014 20:40:33 +0000 (22:40 +0200)]
Actually check that grep options exist before adding them to the alias.
Moviuro [Thu, 11 Sep 2014 20:40:09 +0000 (22:40 +0200)]
Actually check that ls options exist before adding them to the alias.
Frank Terbeck [Mon, 18 Aug 2014 08:26:04 +0000 (10:26 +0200)]
zshrc: Remove ‘-C’ from the ‘ls’ alias's options
That option forces column-wise display, which is the default anyway
if ls is connected to a terminal.
Reported by moviuro in #grml on freenode.
Acked-by: mika, ft
Michael Prokop [Thu, 3 Jul 2014 10:47:45 +0000 (12:47 +0200)]
Release new version 0.9.6
Frank Terbeck [Mon, 23 Jun 2014 23:06:49 +0000 (01:06 +0200)]
zshrc: Add function to toggle colour codes in vcs_info formats
→ grml_vcs_info_toggle_colour
Documentation included.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 23 Jun 2014 22:59:02 +0000 (00:59 +0200)]
zshrc: Use modern colour codes with modern zsh versions
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Fri, 13 Jun 2014 18:27:54 +0000 (20:27 +0200)]
zshrc: Adjustments for abbreviation expansion
These changes should fix refcard-generation wrt keybindings.
It also removes $NOABBREVIATION and grml_toggle_abbrev which are not
required anymore with the new default abbreviation keybinding, which is
"C-x .".
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Fri, 13 Jun 2014 17:52:18 +0000 (19:52 +0200)]
zshrc: Move generation marker to right position
Michael Prokop [Thu, 22 May 2014 10:12:36 +0000 (12:12 +0200)]
zshrc: export SHELL only if unset, don't hardcode path for zsh binary
On e.g. FreeBSD zsh isnt' necessarily available as /bin/zsh, so
let's make that more flexible. Also while at it export SHELL only
if the variable is unset yet, since setting SHELL should be
something the login system care about.
Acked-by: Frank Terbeck <ft@grml.org>
Michael Prokop [Tue, 20 May 2014 10:28:47 +0000 (12:28 +0200)]
Release new version 0.9.5
Michael Prokop [Tue, 20 May 2014 10:25:22 +0000 (12:25 +0200)]
zshrc: drop duplicated bk() function [Closes: issue1307]
Thanks: Thilo Six <tech@xk2c.de>
Michael Prokop [Mon, 12 May 2014 11:05:18 +0000 (13:05 +0200)]
zshrc: use "local" file variable in sll()
Michael Prokop [Mon, 12 May 2014 10:18:33 +0000 (12:18 +0200)]
zshrc: extend dchange() to support apt-get and multiple package names
Since apt v0.8.11 it's possible to use "apt-get changelog $package"
as well. While at it support displaying changelogs for multiple
packages.
Michael Prokop [Sat, 19 Apr 2014 22:26:25 +0000 (00:26 +0200)]
Debian packaging: use correct "Grml" spelling
Michael Prokop [Sat, 19 Apr 2014 13:44:51 +0000 (15:44 +0200)]
Release new version 0.9.4
Frank Terbeck [Wed, 9 Apr 2014 08:12:31 +0000 (10:12 +0200)]
zshrc: Make options of gpasswd complete via _gnu_generic
Frank Terbeck [Thu, 27 Mar 2014 12:13:16 +0000 (13:13 +0100)]
Make ‘egrep’ use the same options as ‘grep’ [Closes: issue1230]
Erik Bernstein [Thu, 20 Mar 2014 18:47:11 +0000 (19:47 +0100)]
zshrc: introduce variable for the compdump file [Closes: issue1275]
Make the completion dump file location configurable by
setting COMPDUMPFILE.
Michael Prokop [Mon, 3 Feb 2014 15:14:52 +0000 (16:14 +0100)]
Release new version 0.9.3
Michael Prokop [Mon, 3 Feb 2014 13:49:34 +0000 (14:49 +0100)]
zshrc: check for DIRSTACK{SIZE,FILE} in chpwd()
If the environment variables are unset chpwd emmits an
error message, so check before using.
Thanks: Frank Terbeck <ft@grml.org> for review
Michael Prokop [Mon, 3 Feb 2014 11:48:07 +0000 (12:48 +0100)]
zshrc: do not source /etc/sysconfig/keyboard
There shouldn't be any need for doing this here.
Michael Prokop [Mon, 3 Feb 2014 11:47:26 +0000 (12:47 +0100)]
zshrc: drop setting TZ via /etc/timezone
This shouldn't be part of zshrc.
Bernhard Tittelbach [Fri, 24 Jan 2014 08:10:38 +0000 (09:10 +0100)]
zsh: purge more latex filename extensions