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
Michael Prokop [Fri, 21 Dec 2007 23:12:12 +0000 (00:12 +0100)]
Apply patch from issue350
Michael Prokop [Fri, 21 Dec 2007 19:55:25 +0000 (20:55 +0100)]
Michael Prokop [Fri, 21 Dec 2007 19:54:56 +0000 (20:54 +0100)]
update changelog
Frank Terbeck [Thu, 20 Dec 2007 21:21:36 +0000 (22:21 +0100)]
zshrc: $reswords is an array *not* a hash...
Michael Prokop [Sun, 16 Dec 2007 20:28:03 +0000 (21:28 +0100)]
Michael Prokop [Sun, 16 Dec 2007 19:34:40 +0000 (20:34 +0100)]
/etc/zsh/zshrc: change logic of $HOSTNAME in preexec()
Michael Prokop [Sun, 16 Dec 2007 17:13:52 +0000 (18:13 +0100)]
Michael Prokop [Tue, 11 Dec 2007 18:45:38 +0000 (19:45 +0100)]
Bumb version number
Michael Prokop [Tue, 11 Dec 2007 18:44:57 +0000 (19:44 +0100)]
Update changelog for "Disable command-completion descriptions"
Frank Terbeck [Tue, 11 Dec 2007 18:40:56 +0000 (19:40 +0100)]
Disable command-completion descriptions
Michael Prokop [Sun, 9 Dec 2007 22:02:54 +0000 (23:02 +0100)]
Michael Prokop [Sun, 9 Dec 2007 22:01:26 +0000 (23:01 +0100)]
Update debbug()
Michael Prokop [Sun, 9 Dec 2007 21:58:37 +0000 (22:58 +0100)]
extend debbug() based on xana.scru.org/quanks/b-func.html
Michael Prokop [Fri, 7 Dec 2007 21:56:56 +0000 (22:56 +0100)]
Apply patches regarding zsh sourcing by ft
* Fix the 'xsource' issue
* Only read .zshrc.global if $ZSHRC_GLOBAL_HAS_BEEN_READ is not set yet
Michael Prokop [Thu, 6 Dec 2007 22:28:05 +0000 (23:28 +0100)]
Adjust xsource function in skeleton file
Michael Prokop [Thu, 6 Dec 2007 22:25:11 +0000 (23:25 +0100)]
Update changelog
Michael Prokop [Thu, 6 Dec 2007 22:22:47 +0000 (23:22 +0100)]
zsh: Make sure xsource works in any case; add modelines for vim
Michael Prokop [Thu, 6 Dec 2007 22:16:36 +0000 (23:16 +0100)]
Applied patch bomb for unified indenting, thanks ft
Michael Prokop [Tue, 4 Dec 2007 18:06:09 +0000 (19:06 +0100)]
Revert the b0rken type change for zsh
Michael Prokop [Tue, 4 Dec 2007 17:26:43 +0000 (18:26 +0100)]
Applied patch by ft and updated changelog
Michael Prokop [Mon, 3 Dec 2007 22:00:48 +0000 (23:00 +0100)]
Apply patch by z3ttacht regarding issue354
Michael Prokop [Mon, 3 Dec 2007 21:18:53 +0000 (22:18 +0100)]
zsh: replace $(which ...) with $(type ...)
Michael Prokop [Sun, 2 Dec 2007 18:55:03 +0000 (19:55 +0100)]
/etc/skel/.zshrc: add alias 'g' for git
Michael Prokop [Thu, 22 Nov 2007 10:17:14 +0000 (11:17 +0100)]
Michael Prokop [Thu, 22 Nov 2007 10:16:43 +0000 (11:16 +0100)]
zshrc: add (deactivated) MANWIDTH=80; fix colorschema in screenrc
Michael Prokop [Mon, 5 Nov 2007 11:21:38 +0000 (12:21 +0100)]
Michael Prokop [Mon, 5 Nov 2007 11:21:16 +0000 (12:21 +0100)]
Move vim vs. vi from /etc/skel/.zshrc.grmlsmall to /etc/zsh/zshrc