Frank Terbeck [Wed, 6 Mar 2013 11:42:52 +0000 (12:42 +0100)]
zshrc: Use %# instead of %% for the `percent' token in the prompt
The "%%" puts a percent sign unconditionally, but we only want the percent for
non-root users. root should still have the "#" sign. This is the fix for that.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Wed, 6 Mar 2013 11:37:50 +0000 (12:37 +0100)]
grmlzshrc.t2t: Document how static prompt customisation should be done now
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:57:43 +0000 (15:57 +0100)]
zshrc: New prompt mixed up %B and %b for the path item
Frank Terbeck [Tue, 5 Mar 2013 14:49:22 +0000 (15:49 +0100)]
grmlzshrc.t2t: Update copyright years
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:47:21 +0000 (15:47 +0100)]
grmlzshrc.t2t: Document the new prompt themes
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:39:12 +0000 (15:39 +0100)]
zshrc: New prompt: Documentation update
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:28:08 +0000 (15:28 +0100)]
zshrc: New prompt: Keep maps sorted
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:22:03 +0000 (15:22 +0100)]
zshrc: Move preexec() code to hooks
This allows for way more control and customisation by the user, just
like the same move with precmd(), that was done earlier does.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:15:00 +0000 (15:15 +0100)]
zshrc: Move CNF handler to a better place
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:13:32 +0000 (15:13 +0100)]
zshrc: Use a non-forking expression to read /etc/debian_chroot
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 14:06:36 +0000 (15:06 +0100)]
zshrc: New prompt: Only enable prompt themes with zsh >= 4.3.7
The themes do use modern features, that require this constraint.
The fallback prompt, that was being used when promptsys wasn't available
is _way_ more backwards compatible (and will remain like that). Use that
fallback in cases of $ZSH_VERSION < 4.3.7 as well.
This also means, that the GRMLPROMPT=1 and [[ -n $GRML_CHROOT ]] prompts
are not available with shells that old. Version 4.3.7 of zsh was
released on 2008-10-28. I think it's reasonable to require ~5 year old
software for the full-blown version of a setup. The last stable debian
release ships version 4.3.10 and the upcoming release will sport version
4.3.17. Grml ISOs come with version >= 5.0.0.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 13:58:00 +0000 (14:58 +0100)]
zshrc: New prompt: Reorganise the prompt section
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 13:36:28 +0000 (14:36 +0100)]
zshrc: New prompt: Remove old prompt setting scheme
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 13:35:46 +0000 (14:35 +0100)]
zshrc: New prompt: Provide fallback in case promptinit fails
This should not happen usually. But better be safe than sorry.
In case something goes wrong we only support _one_ prompt, with the original
root-is-red changeroo. This is good enough as a fallback.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 13:23:11 +0000 (14:23 +0100)]
zshrc: New prompt: Enable one of the prompts
Mimic the old way of choosing the "right" prompt.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 13:18:58 +0000 (14:18 +0100)]
zshrc: New prompt: Handle grml-chroot in dumb-terminal config
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 13:15:43 +0000 (14:15 +0100)]
zshrc: New prompt: Fix quoting style in dumb-terminal config
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 01:13:31 +0000 (02:13 +0100)]
zshrc: Enable the grml prompt theme via promptsys
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 01:09:02 +0000 (02:09 +0100)]
zshrc: New prompt: Fix wrong logic for user name colouring
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 01:08:28 +0000 (02:08 +0100)]
zshrc: New prompt: Add new theme: grml-chroot
This should replace the GRML_CHROOT specific prompt.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 00:58:19 +0000 (01:58 +0100)]
zshrc: New prompt: Add new theme: grml-large
This is what should be enabled if GRMLPROMPT=1 was specified by the user.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 00:24:33 +0000 (01:24 +0100)]
zshrc: New prompt: Username in red for root
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 00:20:11 +0000 (01:20 +0100)]
zshrc: New prompt: Support TERM == dumb
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Tue, 5 Mar 2013 00:06:58 +0000 (01:06 +0100)]
zshrc: New prompt: support [[ $BATTERY -gt 0 ]]
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 4 Mar 2013 23:47:34 +0000 (00:47 +0100)]
zshrc: New prompt: Allow `items' list for PS1 _and_ RPS1
We have this $PERCENT bit, that tracks battery status. And to integrate
that into the framework requires either a lot of code specialisation and
duplication, or we refactor the PS1 setting loop so it can set RSP1,
too.
This changes the configuration scheme a bit. Dokumentation updated
accordingly.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 4 Mar 2013 22:54:06 +0000 (23:54 +0100)]
zshrc: New prompt: Move more precmd() code to hook fncs
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 4 Mar 2013 22:39:08 +0000 (23:39 +0100)]
zshrc: New prompt: Implement the basic grml prompt framework
This actually already implements most of the stuff, that is in
our usual prompt.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 4 Mar 2013 18:20:46 +0000 (19:20 +0100)]
zshrc: New prompt: Register prompt theme with promptsys
This requires a little more care, since promptinit only picks up
themes from $fpath; which we don't do. We define the prompt directly
in the zshrc file.
Signed-off-by: Frank Terbeck <ft@grml.org>
Frank Terbeck [Mon, 4 Mar 2013 18:18:48 +0000 (19:18 +0100)]
zshrc: New prompt: Add promptsys help (-h) text
And also, a few required stubs.
Signed-off-by: Frank Terbeck <ft@grml.org>
Bernhard Tittelbach [Thu, 28 Feb 2013 19:10:15 +0000 (20:10 +0100)]
zsh: abk, don't match everything between . and | and thus make it work after e.g. /
Michael Prokop [Tue, 26 Feb 2013 09:10:49 +0000 (10:10 +0100)]
Release new version 0.7.4
Evan Pitstick [Fri, 22 Feb 2013 22:14:41 +0000 (17:14 -0500)]
Moved the grml.org host to skel and added support for ZDOTDIR
Hendrik Jaeger [Thu, 21 Feb 2013 15:52:17 +0000 (16:52 +0100)]
vimrc: remove duplicate settings
Michael Prokop [Fri, 15 Feb 2013 12:36:19 +0000 (13:36 +0100)]
zshrc: add dcopyright function to display copyright file of a given package
Similar to what dchange provides for changelogs, provide the
same feature for copyright files (works at least on Debian
systems).
Thanks: Gregor Herrmann <gregoa@debian.org> for the patch
Michael Prokop [Thu, 27 Dec 2012 11:30:13 +0000 (12:30 +0100)]
Release new version 0.7.3
Pierre Schmitz [Mon, 17 Dec 2012 13:43:17 +0000 (14:43 +0100)]
Restore original prompt
This reverts the changes to the prompt introduced by commit
843931fc6e0ef4c638b3fe253fdb48e083415221
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Michael Prokop [Mon, 17 Dec 2012 11:52:15 +0000 (12:52 +0100)]
Release new version 0.7.2
Christian Hesse [Fri, 23 Nov 2012 09:49:53 +0000 (10:49 +0100)]
unify spelling of colo(u)r to color
Thanks to Christian Hesse <mail@eworm.de>!
Merge of the pull request #24
(https://github.com/grml/grml-etc-core/pull/24)
Conflicts:
etc/zsh/zshrc
Signed-off-by: Markus Rekkenbeil <bionix@grml.org>
Frank Terbeck [Fri, 9 Nov 2012 09:25:26 +0000 (10:25 +0100)]
zshrc: Remove zurl's dependency on =~ type regexp conditions
This should improve backwards compatibility with older zsh-versions.
Reported-by: Ilya Novoselov
Signed-off-by: Frank Terbeck <ft@grml.org>
Bernhard Tittelbach [Wed, 7 Nov 2012 04:23:49 +0000 (05:23 +0100)]
zsh: updated purge function
Michael Prokop [Tue, 2 Oct 2012 07:58:59 +0000 (09:58 +0200)]
Release new version 0.7.1
Michael Prokop [Tue, 2 Oct 2012 07:58:41 +0000 (09:58 +0200)]
Bump Standards-Version to 3.9.4
Michael Prokop [Thu, 27 Sep 2012 09:48:48 +0000 (11:48 +0200)]
zshrc: use variable ffound in zrcautoload function
Acked-by: Frank Terbeck <ft@bewatermyfriend.org>
Bernhard Tittelbach [Tue, 18 Sep 2012 21:05:12 +0000 (23:05 +0200)]
zsh: improve purge(), glob for files where appropriate and don't try to delete stuff twice
Michael Prokop [Mon, 10 Sep 2012 07:12:39 +0000 (09:12 +0200)]
Release new version 0.7.0
Frank Terbeck [Fri, 7 Sep 2012 15:59:35 +0000 (17:59 +0200)]
Workaround incompatibilities with the keyboard setup of some vendors
Some vendors, like Debian (and therefore Ubuntu), enable smkx terminal
mode in the zle-line-init widget and turn it back off in
zle-line-finish.
While that is the right thing to do, because it makes sure the values
from $terminfo are valid. However, we are currently incompatible with
that. And it is a lot of work to get it right for every binding we have,
because we do have some, that are not available in the vast majority of
terminfo entries (like <Ctrl>-<CursorKey>).
Signed-off-by: Frank Terbeck <ft@grml.org>
Bernhard Tittelbach [Sat, 25 Aug 2012 20:40:02 +0000 (22:40 +0200)]
tmux join-pane
Bernhard Tittelbach [Wed, 15 Aug 2012 23:20:33 +0000 (01:20 +0200)]
zsh: fix typo grml functions autoload
Frank Terbeck [Wed, 8 Aug 2012 06:15:13 +0000 (08:15 +0200)]
Specify a command search path for sudo completion [Closes: issue1207]
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Bernhard Tittelbach [Tue, 31 Jul 2012 11:36:05 +0000 (13:36 +0200)]
zshrc: make simple-extract also work with uris that end in e.g. format=zip
Bernhard Tittelbach [Fri, 27 Jul 2012 18:16:02 +0000 (20:16 +0200)]
tmux: kill-pane instead of kill-window
Frank Terbeck [Wed, 25 Jul 2012 20:22:59 +0000 (22:22 +0200)]
Do not disable zstyle if compsys did not load
Zstyle is _used_ to configure the completion system but it is *not*
a part of it. Other systems use zstyle too, and if we lock it away,
those systems may break in undesirable ways.
Frank Terbeck [Tue, 24 Jul 2012 20:34:03 +0000 (22:34 +0200)]
Only define vim() if vim is available
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Bernhard Tittelbach [Thu, 12 Jul 2012 16:55:23 +0000 (18:55 +0200)]
tmux: kill-session for gebi
Bernhard Tittelbach [Thu, 12 Jul 2012 16:46:54 +0000 (18:46 +0200)]
tmux: make copy&pase mode useable
Bernhard Tittelbach [Thu, 12 Jul 2012 16:11:21 +0000 (18:11 +0200)]
tmux: date and time, and commented out alternatives
Bernhard Tittelbach [Thu, 12 Jul 2012 15:56:15 +0000 (17:56 +0200)]
tmux: better user@host:session scheme
Bernhard Tittelbach [Thu, 12 Jul 2012 15:39:43 +0000 (17:39 +0200)]
tmux: mouse-select-pane off to enable terminal window copy&paste
Bernhard Tittelbach [Thu, 14 Jun 2012 12:32:11 +0000 (14:32 +0200)]
tmux.conf: more space, session name
Bernhard Tittelbach [Thu, 24 May 2012 12:23:09 +0000 (14:23 +0200)]
tmux.conf: new statusline, space and backspace enabled for window switching
Michael Prokop [Mon, 2 Jul 2012 07:48:39 +0000 (09:48 +0200)]
zshrc: Enable CLICOLOR on FreeBSD
Thanks: Christian Hofstaedtler
Michael Prokop [Mon, 11 Jun 2012 22:37:16 +0000 (00:37 +0200)]
Release new version 0.6.2
Michael Prokop [Wed, 30 May 2012 20:27:40 +0000 (22:27 +0200)]
zshrc: provide Status as short to /etc/init.d/$service status
We already have Start, Restart, Stop, Force-Reload and Reload,
it's just consequent to also provide Status therefore as one
of the most commonly present ones.
Michael Prokop [Tue, 29 May 2012 09:59:06 +0000 (11:59 +0200)]
zshrc: drop trailing space in grep and ls _options
If an alias ends with a space char the shell will expand the next
word as an alias as well, even if it's not a global alias.
Bug demonstration:
| % which "grep"
| grep: aliased to grep --color=auto
| % which "ls"
| ls: aliased to ls -b -CF --color=auto
| % grep ls ~/.gitconfig
| grep: F: invalid context length argument
Thanks: Frank Terbeck <ft@grml.org> for the bugfix
Acked-by: Frank Terbeck <ft@grml.org>
Michael Prokop [Tue, 15 May 2012 18:24:04 +0000 (20:24 +0200)]
Release new version 0.6.1
Michael Prokop [Tue, 15 May 2012 18:23:52 +0000 (20:23 +0200)]
Bump Standards-Version to 3.9.3.
Frank Terbeck [Tue, 15 May 2012 13:03:45 +0000 (15:03 +0200)]
dirprofiles: Move updated documentation from source code comment to the setup's manual page
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Frank Terbeck [Tue, 15 May 2012 08:13:52 +0000 (10:13 +0200)]
Merge latest directory-profiles code
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Michael Prokop [Wed, 9 May 2012 10:30:03 +0000 (12:30 +0200)]
Release new version 0.6.0
Bernhard Tittelbach [Fri, 13 Apr 2012 20:05:16 +0000 (22:05 +0200)]
zsh: purge: make purge take an optional dir argument so it can be used e.g. with zargs --max-args 1 -- **/ -- purge
Bernhard Tittelbach [Tue, 3 Apr 2012 06:21:04 +0000 (08:21 +0200)]
zshrc: fix inplaceMkDirs
Jerome Leclanche [Sun, 1 Apr 2012 20:33:18 +0000 (21:33 +0100)]
Re-implement zurl() under the goo.gl API
Frank Terbeck [Thu, 29 Mar 2012 08:15:34 +0000 (10:15 +0200)]
zshrc: Make mkcd() more robust
Hinted at by peth on #zsh.
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Frank Terbeck [Thu, 29 Mar 2012 08:11:27 +0000 (10:11 +0200)]
zshrc: Remove superfluous comments
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Frank Terbeck [Thu, 29 Mar 2012 08:09:43 +0000 (10:09 +0200)]
zshrc: Fix documentation tag for alias lsl
Found by peth on #zsh.
Signed-off-by: Frank Terbeck <ft@grml.org>
Michael Prokop [Mon, 12 Mar 2012 12:14:52 +0000 (13:14 +0100)]
zshrc: drop http alias
The httpie package provides a http command (brr), so don't mess
with custom functions and packages...
Thanks: Axel Beckert for reporting
Michael Prokop [Sat, 25 Feb 2012 09:44:49 +0000 (10:44 +0100)]
script-functions: fix getbootparam/checkbootparam
We should get rid of this annoying stuff and make sure we
reduce it to a minimum and share what's inside grml-autoconfig.
Frank Terbeck [Wed, 1 Feb 2012 20:28:46 +0000 (21:28 +0100)]
Fix broken quoting
And again found by ChiCuong HA. Thanks, man.
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Frank Terbeck [Wed, 1 Feb 2012 20:22:45 +0000 (21:22 +0100)]
Typo: grml_options -> grep_options
Once more found by ChiCuong HA.
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Frank Terbeck [Wed, 1 Feb 2012 20:06:27 +0000 (21:06 +0100)]
Enable --color=auto for grep in FreeBSD
Reported by ChiCuong HA again. Thanks.
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Frank Terbeck [Wed, 1 Feb 2012 19:28:07 +0000 (20:28 +0100)]
Fix ls (and grep) option handling on non-linux systems
--color=... only works with GNU ls and grep. Test for that and
behave accordingly.
Reported-by: ChiCuong HA
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Michael Prokop [Sun, 29 Jan 2012 12:28:22 +0000 (13:28 +0100)]
Release new version 0.5.5
Bernhard Tittelbach [Fri, 27 Jan 2012 00:48:05 +0000 (01:48 +0100)]
zsh: keybindings: unify case ++
Bernhard Tittelbach [Fri, 27 Jan 2012 00:34:57 +0000 (01:34 +0100)]
zsh: keybindings: unify case of caseinsensitive control chars
Bernhard Tittelbach [Fri, 27 Jan 2012 00:24:10 +0000 (01:24 +0100)]
zsh: help-show-abk
Bernhard Tittelbach [Thu, 26 Jan 2012 23:46:12 +0000 (00:46 +0100)]
zsh: help-zle bugfix
Bernhard Tittelbach [Thu, 26 Jan 2012 20:51:54 +0000 (21:51 +0100)]
zsh: purge: make default uppercase
Bernhard Tittelbach [Thu, 26 Jan 2012 04:47:55 +0000 (05:47 +0100)]
zsh: some handy examples for the skel/.zshrc
Michael Prokop [Wed, 11 Jan 2012 17:27:46 +0000 (18:27 +0100)]
Release new version 0.5.4
Frank Terbeck [Wed, 11 Jan 2012 14:07:06 +0000 (15:07 +0100)]
Add completion for grml-tips [Closes: issue988]
Michael Prokop [Mon, 9 Jan 2012 15:30:37 +0000 (16:30 +0100)]
Release new version 0.5.3
Bernhard Tittelbach [Mon, 2 Jan 2012 18:05:14 +0000 (19:05 +0100)]
zsh: lsdisk: fix typo introduced through rewrapping
Ulrich Dangel [Sat, 31 Dec 2011 11:07:28 +0000 (12:07 +0100)]
Remove hg-snapshot-script and corresponding apt.conf.example
To track changes in /etc please use etckeeper
Ulrich Dangel [Sat, 31 Dec 2011 11:04:49 +0000 (12:04 +0100)]
Remove deprecated file /etc/apt/sources.list.grml
Bernhard Tittelbach [Thu, 22 Dec 2011 23:03:25 +0000 (00:03 +0100)]
zsh:weather: --typo
Michael Prokop [Thu, 8 Dec 2011 20:22:14 +0000 (21:22 +0100)]
Release new version 0.5.2
Michael Prokop [Thu, 8 Dec 2011 15:04:03 +0000 (16:04 +0100)]
Remove /etc/skel/.toprc, not supported by recent procps
| % top
| top: incompatible rcfile, you should delete '/home/grml/.toprc'
Doing so.
Michael Prokop [Thu, 8 Dec 2011 13:30:36 +0000 (14:30 +0100)]
Release new version 0.5.1
Christian Hofstaedtler [Thu, 8 Dec 2011 00:10:19 +0000 (01:10 +0100)]
Remove extra delete-word bindings
Trying to get Alt-Del right is just too much trouble.
Christian Hofstaedtler [Tue, 6 Dec 2011 21:49:10 +0000 (22:49 +0100)]
Release new version 0.5.0.