Michael Prokop [Thu, 11 Sep 2008 10:13:40 +0000 (12:13 +0200)]
Added tag 0.3.57 for changeset
d73e0a95943d
Michael Prokop [Thu, 11 Sep 2008 10:13:10 +0000 (12:13 +0200)]
Update changelog for uploading
Frank Terbeck [Thu, 11 Sep 2008 10:06:05 +0000 (12:06 +0200)]
zshrc: Fixing $PS2
We use prompt_subst for vcs_info() to work. PS2 contained a backtick, which
starts off command substitution. There was no closing backtick (because the
backtick is meant to be there for cosmetic reasons only), so that threw
a parsing error now. Thanks to Matthias Merk noticing.
This also removes some dead comments.
Michael Prokop [Mon, 8 Sep 2008 13:28:36 +0000 (15:28 +0200)]
Added tag 0.3.56 for changeset
9fbbb733b10e
Michael Prokop [Mon, 8 Sep 2008 13:28:22 +0000 (15:28 +0200)]
Update changelog for upload
Frank Terbeck [Sat, 6 Sep 2008 00:00:10 +0000 (02:00 +0200)]
zshrc: oops, renamed styles; use the new ones
Frank Terbeck [Fri, 5 Sep 2008 23:58:12 +0000 (01:58 +0200)]
zshrc: changing invocation of vcs_info()
Calling vcs_info() from PS1 is a stupid idea, because it will be called
*every* *single* *time* the prompt is redrawn.
That's among other things, every time you hit tab. Annoying.
This calls vcs_info() from precmd(). That's a *lot* less than before.
Frank Terbeck [Tue, 2 Sep 2008 22:43:37 +0000 (00:43 +0200)]
zshrc: 'limit stack' needs zsh 4.2.5 or newer (not just 4.*)
Michael Prokop [Mon, 1 Sep 2008 09:55:54 +0000 (11:55 +0200)]
Added tag 0.3.55 for changeset
bce6d8669eec
Michael Prokop [Mon, 1 Sep 2008 09:55:33 +0000 (11:55 +0200)]
Update changelog for uploader
Frank Terbeck [Mon, 1 Sep 2008 09:50:32 +0000 (11:50 +0200)]
zshrc: Fixing ${YELLOW]}, which is bad zsh syntax.
Remember, 'hg pull' != 'git pull' when testing changes... *sigh*
Michael Prokop [Mon, 1 Sep 2008 09:34:09 +0000 (11:34 +0200)]
Added tag 0.3.54 for changeset
5eb50d5e5a9d
Michael Prokop [Mon, 1 Sep 2008 09:32:51 +0000 (11:32 +0200)]
Drop maintainer-script-lacks-debhelper-token of lintian file
Michael Prokop [Mon, 1 Sep 2008 09:32:11 +0000 (11:32 +0200)]
Update debian/overrides
Michael Prokop [Mon, 1 Sep 2008 09:30:17 +0000 (11:30 +0200)]
Update lintian file
Michael Prokop [Mon, 1 Sep 2008 09:27:59 +0000 (11:27 +0200)]
Debian updates to make lintian happy
Frank Terbeck [Sun, 31 Aug 2008 19:40:01 +0000 (21:40 +0200)]
zshrc: Fixes for svk in vcs_info()
Frank Terbeck [Sun, 31 Aug 2008 14:08:15 +0000 (16:08 +0200)]
zshrc: Fix in svn backend of vcs_info(), doc updates
...and a new style to configure the %b replacement in formats for svn and bzr.
Frank Terbeck [Sun, 31 Aug 2008 11:08:32 +0000 (13:08 +0200)]
zshrc: Add experimental bzr backend to vcs_info()
I works without calling 'bzr' itself, but remains disabled by default,
because I have *no* idea if it does the right thing for all bzr repositories.
If a bzr user complains about the slowness of the default bzr backend, we can
now point him/her to:
% zstyle ':vcs_info:bzr' use-simple true
And get feedback, if that works in all cases.
Frank Terbeck [Fri, 29 Aug 2008 23:12:56 +0000 (01:12 +0200)]
zshrc: Adding support for cvs repositories to vcs_info()
Michael Prokop [Fri, 29 Aug 2008 22:52:52 +0000 (00:52 +0200)]
Added tag 0.3.53 for changeset
78e4ec3d7421
Michael Prokop [Fri, 29 Aug 2008 22:52:33 +0000 (00:52 +0200)]
Adjust changelog for uploading
Frank Terbeck [Fri, 29 Aug 2008 22:04:27 +0000 (00:04 +0200)]
zshrc: Improve robustness of the bzr backend in vcs_info()
I just played a little with bzr; calling 'bzr' itself in the prompt is
painfully slow. And we do it *twice* for the base directory and the
branchname/revision-number.
I don't know enough about bzr, to change this.
Personally, I would replace the branch-root, by the base directory, that
VCS_INFO_detect_by_dir().
The branch name *could* be replaced by ${bzrbase:t}, but since it is
retrieved from the same command as the revision-number, so that will not
save us a call to 'bzr'...
Hints on this one are highly appreciated. Like this, the bzr backend
is just too slow to use (for me on my laptop at 1.5GHz).
Frank Terbeck [Fri, 29 Aug 2008 21:28:32 +0000 (23:28 +0200)]
zshrc: Adding support for monotone repositories to vcs_info()
Frank Terbeck [Fri, 29 Aug 2008 20:22:44 +0000 (22:22 +0200)]
zshrc: Adding support for darcs repositories to vcs_info()
This is pretty basic support; but at least it detects darcs repositories
correctly. Since darcs has no concept of branches, but rather implements
them by using multiple repositories, %b expands to the same thing %r does.
Frank Terbeck [Fri, 29 Aug 2008 17:50:36 +0000 (19:50 +0200)]
Introduce a disable style to vcs_info()
Give the user the opportunity to switch the vcs_info prompt off for
certain version control systems.
Plus documentation update for vcs_info(), including examples.
Frank Terbeck [Fri, 29 Aug 2008 17:11:50 +0000 (19:11 +0200)]
zshrc: Handle non-repo .hg subdirectories
Such directories, that are not the .hg subdirectory of a mercurial
repository. Found by Karl Voit.
Frank Terbeck [Thu, 28 Aug 2008 14:26:46 +0000 (16:26 +0200)]
zshrc: A few changes for the sake of consistency
+ Use $'...' to manually define colors.
+ unset the newly introduced YELLOW and MAGENTA variables.
No *real* code changes here.
Frank Terbeck [Wed, 27 Aug 2008 20:36:44 +0000 (22:36 +0200)]
zshrc: Make vcs_info() detect $GIT_DIR/svn and set vcs to 'git-svn'
Frank Terbeck [Wed, 27 Aug 2008 20:24:05 +0000 (22:24 +0200)]
zshrc: Clean up vcs_info() a little
Frank Terbeck [Wed, 27 Aug 2008 11:08:29 +0000 (13:08 +0200)]
Updating debian/changelog
Frank Terbeck [Wed, 27 Aug 2008 11:00:35 +0000 (13:00 +0200)]
zshrc: Handle a state of git in vcs_info(), when a normal rebase conflicts
This should have been handled before, but didn't due to a bug.
I just ran into this state for the first time.
Michael Prokop [Wed, 27 Aug 2008 11:05:35 +0000 (13:05 +0200)]
Added tag 0.3.52 for changeset
1331f322ab7e
Frank Terbeck [Tue, 26 Aug 2008 23:06:15 +0000 (01:06 +0200)]
zshrc: Fix for detecting bzr repos with vcs_info()
Frank Terbeck [Tue, 26 Aug 2008 14:40:07 +0000 (16:40 +0200)]
And the of-course-forgotten debian/changelog update
Frank Terbeck [Tue, 26 Aug 2008 14:32:18 +0000 (16:32 +0200)]
zshrc: Load colors earlier, for vcs_info()
This also adds YELLOW and MAGENTA to the prompt color variables.
Frank Terbeck [Tue, 26 Aug 2008 14:21:48 +0000 (16:21 +0200)]
zshrc: Fixing a stupid typo in the last commit, which totally broke our prompt
Frank Terbeck [Tue, 26 Aug 2008 14:17:30 +0000 (16:17 +0200)]
zshrc: Enable vcs_info() in our prompts by default.
For people who really dislike this feature, it's optional via:
% zstyle ':vcs_info:*' enable false
Frank Terbeck [Tue, 26 Aug 2008 14:04:27 +0000 (16:04 +0200)]
zshrc: Remove the old __vcs_dir() code
Frank Terbeck [Tue, 26 Aug 2008 14:00:54 +0000 (16:00 +0200)]
zshrc: Introduce vcs_info()
This is supposed to be a better __vcs_dir(). In zsh, functions starting
with an underscore are supposed to be part of the completion system.
Therefore, the name switch to vcs_info().
This commit does not enable vcs_info(), yet.
It currently supports git, hg, bzr, svk and svn. However, only the
git, hg and svn backends were tested. Up to now, only git supports
*all* functionality vcs_info() is able to provide.
Its configuration is documented in a comment within the code.
Michael Prokop [Wed, 6 Aug 2008 21:56:08 +0000 (23:56 +0200)]
Added tag 0.3.51 for changeset
38e8a4644102
Michael Prokop [Wed, 6 Aug 2008 21:52:10 +0000 (23:52 +0200)]
Add (deactivated) completion for aliases
Michael Prokop [Wed, 6 Aug 2008 21:43:53 +0000 (23:43 +0200)]
Revert removal of xunfunction(), people are using it already
Michael Prokop [Wed, 6 Aug 2008 21:39:21 +0000 (23:39 +0200)]
Update gizmo(), add linenr()
Michael Prokop [Wed, 6 Aug 2008 12:18:20 +0000 (14:18 +0200)]
zshrc: new function uopen
Frank Terbeck [Wed, 6 Aug 2008 12:09:13 +0000 (14:09 +0200)]
Removing xunfunction()
Caused more trouble than being useful.
Michael Prokop [Sun, 3 Aug 2008 18:25:14 +0000 (20:25 +0200)]
Provide more processes in completion [...] of killall
Michael Gebetsroither [Fri, 1 Aug 2008 11:55:50 +0000 (13:55 +0200)]
added changelog entry
Michael Gebetsroither [Fri, 1 Aug 2008 11:43:03 +0000 (13:43 +0200)]
merged
Michael Gebetsroither [Fri, 1 Aug 2008 11:41:57 +0000 (13:41 +0200)]
zshrc: add runit sysv emulation support to Start/Stop/Restart/...
Michael Prokop [Thu, 17 Jul 2008 19:30:32 +0000 (21:30 +0200)]
zshrc: Fix wrong placed comments for debbug vs. debbugm
Frank Terbeck [Fri, 30 May 2008 12:59:34 +0000 (14:59 +0200)]
Make abbreviation optional
The ',.' global abbreviation replacement feature is meant.
It is still on by default, but can be disabled by default by setting
$NOABBREVIATION to something greater than zero in .zshenv; or temporarily by
hitting '^xA', which switches it off (another '^xA' will reenable it - that
way, we can still get it back on, if disabled by $NOABBREVIATION).
Note: Turning off abbreviation effectively disables the feature. The binding
to ',.' still remains, though. Therefore, entering a comma (,) will
still take a few moments (because zsh is waiting for a possible ',.').
If you cannot be bothered to wait that long, quickly hit CTRL-V before
hitting the comma key.
I briefly looked for a better binding for the feature; but most (all?)
of the easy-to-remember ones (like ALT-a, ALT-, or ALT-.) where already
taken. Others didn't produce a useful character sequence on my keyboard
(like CTRL-, or CTRL.); and I don't want '^xA' for it, because that
takes four(!) key presses.
If someone has a better solution, please say so!
Michael Prokop [Mon, 19 May 2008 22:25:05 +0000 (00:25 +0200)]
Add new function ansi-colors()
Michael Prokop [Sat, 17 May 2008 20:59:37 +0000 (22:59 +0200)]
Drop $ALREADY_SOURCED_ZSHENV
Michael Prokop [Sat, 17 May 2008 20:53:46 +0000 (22:53 +0200)]
Add support for ${HOME}/.zshenv; set $PATH on Solaris/SunOS
Frank Terbeck [Wed, 26 Mar 2008 19:21:48 +0000 (20:21 +0100)]
Adding print -l ${(u)foobar} workaround for pre-4.2.0 shells
This also enabled the dirstack magic for such shells again.
Also, this patch only sets defaults for DIRSTACKSIZE and introduces
a new variable DIRSTACKFILE (which defaults to ~/.zdirs). That way
you may change these defaults in your .zshenv for example.
Frank Terbeck [Wed, 26 Mar 2008 19:21:26 +0000 (20:21 +0100)]
Move version and system checking functions up in the file
I will need at least one of these earlier in the file and I do not see
why not to define these almost as early as possible.
Frank Terbeck [Wed, 26 Mar 2008 10:06:50 +0000 (11:06 +0100)]
Disable persistent dirstack for shells older then 4.2.0
We use the (u) flag when saving, which is not available in these older
versions of zsh. We do not intent to keep this disabled forever; just
until we got a properly working solution for older shells.
Michael Prokop [Fri, 21 Mar 2008 23:45:41 +0000 (00:45 +0100)]
Added tag 0.3.50 for changeset
8e6a786b18d0
Michael Prokop [Fri, 21 Mar 2008 23:43:50 +0000 (00:43 +0100)]
zshenv: extend and update $ADDONS handling
Frank Terbeck [Thu, 20 Mar 2008 19:34:58 +0000 (20:34 +0100)]
Add proper bindings for history-beginning-search-{forward,backward}
Michael Prokop [Sat, 8 Mar 2008 13:14:23 +0000 (14:14 +0100)]
zshrc: update function git-get-plaindiff()
Michael Prokop [Wed, 13 Feb 2008 18:22:10 +0000 (19:22 +0100)]
Added tag 0.3.49 for changeset
ca91a3ad2651
Michael Prokop [Wed, 13 Feb 2008 18:21:10 +0000 (19:21 +0100)]
Update changelog
Frank Terbeck [Wed, 13 Feb 2008 18:19:24 +0000 (19:19 +0100)]
zshrc: Keeping check_com() defined after zshrcs are sourced
That way, everything in our zshrc can use that function.
...like dchange() already does, which I must have overseen.
Michael Prokop [Mon, 11 Feb 2008 17:02:29 +0000 (18:02 +0100)]
Added tag 0.3.48 for changeset
e0c83bc3ca9e
Michael Prokop [Mon, 11 Feb 2008 17:01:34 +0000 (18:01 +0100)]
Merge branches
Michael Prokop [Mon, 11 Feb 2008 17:01:19 +0000 (18:01 +0100)]
zshrc: use sudo su for alias su
Frank Terbeck [Sat, 2 Feb 2008 09:52:40 +0000 (10:52 +0100)]
zshrc: autoloading is-at-least again
is-at-least() can be used for precise version checks (as opposed to our
broad is4(), is4{1,2,3}() functions - which are a lot simpler).
Note that this test will *always* fail, if the is-at-least function could
not be marked for autoloading.
Frank Terbeck [Sat, 2 Feb 2008 09:41:09 +0000 (10:41 +0100)]
zshrc: using FOO=${FOO:-default} instead of (( ${+FOO} )) || FOO=default
This is more correct, IMHO.
The old way only sets the default if $FOO is unset; whereas the new way
sets the default if $FOO is unset *or* empty (which is certainly desirable,
if you think of variables like $PAGER).
Michael Prokop [Fri, 1 Feb 2008 01:53:24 +0000 (02:53 +0100)]
zshrc: setopt longlistjobs
Frank Terbeck [Fri, 1 Feb 2008 01:13:09 +0000 (02:13 +0100)]
zshrc: add a check for ZSH_VERSION >= 3.1.7
See <http://bts.grml.org/grml/issue389>.
This commit quietly sets the required version of zsh to 3.1.7.
If that test fails, we complain loudly.
Frank Terbeck [Fri, 1 Feb 2008 01:07:54 +0000 (02:07 +0100)]
zshrc: introduce zrcautoload()
Taken from <http://ft.bewatermyfriend.org/comp/zsh/zshrc.real.html>.
Stripped down for our purposes.
Frank Terbeck [Fri, 1 Feb 2008 00:28:59 +0000 (01:28 +0100)]
zshrc: Don't use is-at-least anymore
While this can be a useful function, it really is a little overkill
for out purposes; especially, since we provide much simpler fallback
functions, when it is not available.
added is43() as well, which is currently not used, but probably should. :-)
Frank Terbeck [Thu, 31 Jan 2008 19:28:54 +0000 (20:28 +0100)]
zshrc: fix breakage, which was revealed by a zsh v3.1.7 testrun
With these changes, implementing issue389 actually make sense.
Frank Terbeck [Thu, 31 Jan 2008 09:47:47 +0000 (10:47 +0100)]
Forgot [Closes: ...] in changelog update...
I should *think* before committing.
Frank Terbeck [Thu, 31 Jan 2008 09:45:56 +0000 (10:45 +0100)]
Updating debian/changelog
Alexander 'z3ttacht' Steinböck [Sun, 27 Jan 2008 15:48:21 +0000 (16:48 +0100)]
whatwhen() -- Get what you did when from the history.
e.g. % whatwhen grml
6682 2008-01-27 16:44 vim etc/grml/screenrc
6683 2008-01-27 16:45 screen -c etc/grml/screenrc
Frank Terbeck [Wed, 30 Jan 2008 20:20:35 +0000 (21:20 +0100)]
Updating debian/changelog
Alexander 'z3ttacht' Steinböck [Sun, 27 Jan 2008 11:39:40 +0000 (12:39 +0100)]
etc/zsh/zshrc: changed `most' for $PAGER in dchange(), uchange(), dnews.
Furthermore `export PAGER' was moved from etc/skel/.zshrc to
etc/zsh/zshrc, since the afore-mentioned functions reside in that
file as well.
Michael Prokop [Sun, 20 Jan 2008 00:48:34 +0000 (01:48 +0100)]
Frank Terbeck [Sun, 20 Jan 2008 00:33:40 +0000 (01:33 +0100)]
missed -l for print in chdir()... I need sleep.
Frank Terbeck [Sun, 20 Jan 2008 00:31:15 +0000 (01:31 +0100)]
zshrc: prevent chdir() from putting dupes into ~/.zdirs
dirs -pl did print the complete stack, including dupes.
Using ${dirstack} from the zsh/pararmeter module to fix this.
Michael Prokop [Sat, 19 Jan 2008 23:36:16 +0000 (00:36 +0100)]
Frank Terbeck [Sat, 19 Jan 2008 21:26:37 +0000 (22:26 +0100)]
zshrc: fixed some refcard-generating tags, that where positioned incorrectly.
Frank Terbeck [Fri, 18 Jan 2008 20:47:39 +0000 (21:47 +0100)]
updating debian/changelog
Frank Terbeck [Fri, 18 Jan 2008 20:28:12 +0000 (21:28 +0100)]
vimrc: display the file, that is being edited into screen's hardstatus
Michael Prokop [Wed, 16 Jan 2008 12:40:38 +0000 (13:40 +0100)]
zshrc: set $NAME in screen title only if $HOSTNAME is set
Michael Prokop [Thu, 10 Jan 2008 23:56:50 +0000 (00:56 +0100)]
update weather() zsh function
Frank Terbeck [Sat, 29 Dec 2007 11:29:49 +0000 (12:29 +0100)]
updating debian/changelog
Frank Terbeck [Sat, 29 Dec 2007 11:24:49 +0000 (12:24 +0100)]
zshrc: Removing folsym()
...which was not exactly beautiful.
Just use ssl(), it does the same but looks clean.
Added copyright notice to the accept-line wrapper, because our zshrc
is GPL'd and the accept-line wrapper code is not.
Frank Terbeck [Wed, 26 Dec 2007 19:18:26 +0000 (20:18 +0100)]
Removing the (commented out) my_accept() widget from zshrc
It's obsoleted by the just-added generic accept-line wrapper.
Michael Prokop [Wed, 26 Dec 2007 17:37:42 +0000 (18:37 +0100)]
Apply patches from ft and update changelog
Frank Terbeck [Wed, 26 Dec 2007 11:43:57 +0000 (12:43 +0100)]
Adding a generic accept-line wrapper
See
<http://bewatermyfriend.org/posts/2007/12-26.11-50-38-tooltime.html>
for details.
Frank Terbeck [Sat, 22 Dec 2007 06:35:22 +0000 (07:35 +0100)]
zshrc: make grmlcomp() readable (':nmap b v$hdO<ESC>pj$' - vim is so useful)
Frank Terbeck [Sat, 22 Dec 2007 06:13:55 +0000 (07:13 +0100)]
zshrc: convert swspeak from alias to function
Michael Prokop [Mon, 24 Dec 2007 20:42:11 +0000 (21:42 +0100)]
Michael Prokop [Mon, 24 Dec 2007 20:10:57 +0000 (21:10 +0100)]
Update vimrc: drop the p vmap
Michael Prokop [Sat, 22 Dec 2007 18:20:06 +0000 (19:20 +0100)]
Disable keybindings of issue350 by default and move to another place
Michael Prokop [Fri, 21 Dec 2007 23:15:31 +0000 (00:15 +0100)]
Apply second patch from issue350