Frank Terbeck [Sun, 7 Jun 2009 11:11:45 +0000 (13:11 +0200)]
zshrc: Get rid off whence
Frank Terbeck [Sun, 7 Jun 2009 10:56:37 +0000 (12:56 +0200)]
zshrc: Give check_com a -g option to test for global aliases, too.
Michael Prokop [Fri, 5 Jun 2009 07:37:04 +0000 (09:37 +0200)]
zshrc: add deborphan, pal and hnb to compdef _gnu_generic
Frank Terbeck [Tue, 2 Jun 2009 14:36:20 +0000 (16:36 +0200)]
zshrc: Removing mostlike references competely
Setting LESS_TERMCAP_* in zshrc now. And since virtually nobody has mostlike
installed on their systems, we are now removing all references to it.
Frank Terbeck [Sun, 31 May 2009 15:58:10 +0000 (17:58 +0200)]
zshrc: Do not discard the output of compinit
When it calls compaudit, that can cause legitimate output, which
is important because it requires user interaction. Not printing such
output can make it seem like zsh is hanging forever.
Frank Terbeck [Sat, 30 May 2009 17:33:09 +0000 (19:33 +0200)]
zshrc: Add a note about contributing and grml-etc-core@grml.org
Frank Terbeck [Sat, 30 May 2009 17:25:39 +0000 (19:25 +0200)]
zshrc: Improve dir based profiles documentation
Clarify how the context of the styles for directory based profiles are
used used and mention a "best practice".
Michael Prokop [Sat, 30 May 2009 14:29:31 +0000 (16:29 +0200)]
Update changelog for release
Frank Terbeck [Fri, 29 May 2009 23:25:07 +0000 (01:25 +0200)]
zshrc: Make directory profiles version safe
_functions[] arrays require version 4.3.3 of zsh. Check for that, document
it and provide solutions to cope with it.
Frank Terbeck [Fri, 29 May 2009 21:10:18 +0000 (23:10 +0200)]
Forgot debian/changelog update. Again...
Frank Terbeck [Fri, 29 May 2009 21:05:44 +0000 (23:05 +0200)]
zshrc: Add directory based profiles
Documentation included, see '/directory based profiles' in zshrc.
Michael Prokop [Mon, 18 May 2009 20:32:37 +0000 (22:32 +0200)]
zshrc: do not fall back to LANG en_US.iso885915 if it is unset
Michael Prokop [Mon, 18 May 2009 07:33:20 +0000 (09:33 +0200)]
Update changelog for release
Frank Terbeck [Sun, 17 May 2009 10:14:39 +0000 (12:14 +0200)]
zshrc: source the global zshrc.local via zrclocal()
This make sure it is always sourced when appropriate - along with other
.local files and *before* the ~/.zshrc.local file.
Michael Prokop [Fri, 15 May 2009 15:52:41 +0000 (17:52 +0200)]
Update changelog for new version upload
Michael Prokop [Tue, 12 May 2009 13:29:47 +0000 (15:29 +0200)]
Update changelog
Moritz Augsburger [Tue, 12 May 2009 13:24:34 +0000 (15:24 +0200)]
fix to enable title inside urxvt-unicode
Frank Terbeck [Fri, 24 Apr 2009 23:16:51 +0000 (01:16 +0200)]
zshrc: remove conkeror alias
Michael Prokop [Tue, 21 Apr 2009 09:01:50 +0000 (11:01 +0200)]
debian/ policy updates
Michael Prokop [Tue, 21 Apr 2009 08:27:27 +0000 (10:27 +0200)]
Update changelog
Moritz Augsburger [Wed, 15 Apr 2009 10:45:18 +0000 (12:45 +0200)]
not every user is allowed to read logfiles...
Better way would be: create a command to test -r $file for all files in
ARGV, prepend sudo only if not readable
Signed-off-by: Moritz Augsburger <moemoe@grml.org>
Frank Terbeck [Mon, 6 Apr 2009 11:05:48 +0000 (13:05 +0200)]
zshrc: handle newer versions of mercurial
It seems like the mercurial vcs (hg) does not create a .hg/branch file anymore,
if there is only the 'default' branch. That broke hg-detection in vcs_info.
This detects hg repositories by the .hg/store directory and defaults to 'default'
if there is no .hg/branch file.
Frank Terbeck [Fri, 3 Apr 2009 19:23:52 +0000 (21:23 +0200)]
zshrc: add a handler that uses debian's command-not-found package
That package allows the user to get information with what package
a certain command can be installed. AFAIK that package is only
available on Debian based systems. Therefore disabled by default.
Frank Terbeck [Sat, 4 Apr 2009 09:45:47 +0000 (11:45 +0200)]
zshrc: do not overrule native completions to _gnu_generic
Only compdef commands to _gnu_generic if no native completion exists.
This should fix problems with _gnu_generic and output from cp of
coreutils version 7.1.
Frank Terbeck [Fri, 3 Apr 2009 20:55:29 +0000 (22:55 +0200)]
add commit-to-history widget
Using the 'commit-to-history' widget a user can add command lines
to the shell's history without executing it. Bound to: <ctrl-x><ctrl-h>
Frank Terbeck [Thu, 2 Apr 2009 11:13:02 +0000 (13:13 +0200)]
Updated debian/changelog
Frank Terbeck [Thu, 2 Apr 2009 11:09:02 +0000 (13:09 +0200)]
zshrc: add wrapper for vim
This wrapper sets VIM_PLEASE_SET_TITLE, so the vimrc knows to set screens
hardstatus.
The wrapper also supports an array ($VIM_OPTIONS), that can be used to set
options for every vim invocation.
To use the installed vim binary without the wrapper function, use either of these:
% command vim
% =vim
The latter needs the EQUALS option set in zsh (which is the default).
Frank Terbeck [Thu, 2 Apr 2009 10:59:55 +0000 (12:59 +0200)]
vimrc: only set title if the caller requests it or in gvim
This should rule out problems with vim breaking screen titles when called
from programs like w3m or mutt.
Michael Prokop [Tue, 31 Mar 2009 21:53:31 +0000 (23:53 +0200)]
vimrc: enable features only if available; update changelog for upload
Frank Terbeck [Tue, 31 Mar 2009 11:23:59 +0000 (13:23 +0200)]
zshrc: always read '/etc/default/locale'
Frank Terbeck [Mon, 30 Mar 2009 22:19:20 +0000 (00:19 +0200)]
zshrc: Fix pattern to extract battery status from acpi
Frank Terbeck [Sun, 22 Mar 2009 13:25:50 +0000 (14:25 +0100)]
Updated debian/changelog
Alexander Steinböck [Tue, 10 Mar 2009 13:53:11 +0000 (14:53 +0100)]
zshrc: Use single quotes througout values in power abbreviations
Alexander Steinböck [Tue, 10 Mar 2009 13:47:41 +0000 (14:47 +0100)]
zshrc: Text formatting in section power abbreviations
Just aligning the three columns key, value and additional doc string for
better readability.
Alexander Steinböck [Tue, 10 Mar 2009 13:30:37 +0000 (14:30 +0100)]
zshrc: Add a trailing space to the power abbreviation regarding grep(1)
This way, the user doesn't need to type an extra space when giving following
arguments and search pattern.
Frank Terbeck [Sun, 8 Mar 2009 17:31:53 +0000 (18:31 +0100)]
zshrc: source ~/.zshrc.local for root, too
This also fixes a missing Closes: in debian/changelog.
Michael Prokop [Fri, 6 Mar 2009 23:56:20 +0000 (00:56 +0100)]
zshrc: use 'setopt noglobdots'
Michael Prokop [Sat, 28 Feb 2009 15:59:23 +0000 (16:59 +0100)]
vimrc: add check for $NOPRECMD
Frank Terbeck [Fri, 27 Feb 2009 21:07:42 +0000 (22:07 +0100)]
Updated debian/changelog
Alexander Steinböck [Thu, 26 Feb 2009 16:48:11 +0000 (17:48 +0100)]
zshrc: Delete unnecessary or questionable power abbreviation respectively.
A lot of already defined aliases were incorporated as power abbreviations too.
These were rather outdated or didn't make much sense. As a consequence just
the power abbreviations which have replaced global aliases are being kept.
Frank Terbeck [Wed, 25 Feb 2009 00:40:14 +0000 (01:40 +0100)]
Unfuck the last commit
Frank Terbeck [Tue, 24 Feb 2009 19:42:57 +0000 (20:42 +0100)]
Add support $NOTITLE variable
'NOTITLE=1 zsh' allows the user to disable the alteration of terminal
titles without completely disabling the precmd() and preexec() functions
(in contrast to the already existing $NOPRECMD variable, which achieves
a similar result by doing exactly that).
Frank Terbeck [Sun, 22 Feb 2009 23:55:38 +0000 (00:55 +0100)]
Updated debian/changelog
Frank Terbeck [Sun, 22 Feb 2009 23:51:38 +0000 (00:51 +0100)]
Fix yet another bug in the shipped version of vcs_info()
Triggered by the added format for screen title setting. *sigh*
Frank Terbeck [Sun, 22 Feb 2009 23:24:03 +0000 (00:24 +0100)]
Fix a bug in the shipped version of vcs_info()
Triggered by the added format for screen title setting.
Frank Terbeck [Sun, 22 Feb 2009 23:13:28 +0000 (00:13 +0100)]
Tell repo names in screen title
If we are in a VCS controlled directory you now get
"zsh: repo-name"
instead of the usual
"zsh"
in GNU screen's window title.
Frank Terbeck [Sun, 22 Feb 2009 23:07:17 +0000 (00:07 +0100)]
Clean up pre{exec,cmd}
Frank Terbeck [Sat, 21 Feb 2009 13:03:06 +0000 (14:03 +0100)]
Forgot to add Closes: in the zurl() rewrite entry in changelog
Alexander Steinböck [Wed, 18 Feb 2009 15:21:11 +0000 (16:21 +0100)]
zshrc::zurl(): Testing existence of given URL by pinging it first.
Frank Terbeck [Thu, 19 Feb 2009 16:48:19 +0000 (17:48 +0100)]
Updating debian/changelog
Alexander Steinböck [Wed, 18 Feb 2009 19:18:12 +0000 (19:18 +0000)]
grml-etc-core: Rewrite of function zurl().
Because of changes in the HTML source code of TinyURL, zurl() wasn't working
properly anymore. For instance, it's now 'copy(http://tinyurl.com/7efkze)'
instead of 'value="(http://tinyurl.com/7efkze)'.
The function however is now just using zsh in-house means and tries to provide
some decent output. Including TinyURL's new preview feature.
<http://tinyurl.com/preview.php>
Frank Terbeck [Thu, 19 Feb 2009 16:43:08 +0000 (17:43 +0100)]
Fix typo in debian/changelog
Michael Prokop [Thu, 19 Feb 2009 16:14:09 +0000 (17:14 +0100)]
Update debian/changelog for Franks work
Michael Prokop [Thu, 19 Feb 2009 16:12:01 +0000 (17:12 +0100)]
Use rxvt* to support setting title for rxvt-unicode
Frank Terbeck [Tue, 17 Feb 2009 11:51:05 +0000 (12:51 +0100)]
zshrc: Make /etc/zsh/functions.d recursive
That way, we can drop whole subsystems into there, if we want to, like:
/etc/zsh/functions.d/VCS_Info/...
This change also makes the code more backwards compatible.
zrcautoload does not need the -U switch. It does that automatically
depending on which zsh version is running.
Frank Terbeck [Fri, 13 Feb 2009 16:47:26 +0000 (17:47 +0100)]
Disable the skel check if running off a cd
Michael Prokop [Fri, 13 Feb 2009 13:07:36 +0000 (14:07 +0100)]
s/please notice/please note/ - thanks ft
Michael Prokop [Fri, 13 Feb 2009 12:59:16 +0000 (13:59 +0100)]
Improve NEWS and upgrade text
Michael Prokop [Fri, 13 Feb 2009 12:43:12 +0000 (13:43 +0100)]
Further improve upgrade path via /etc/skel/.zshrc
Michael Prokop [Fri, 13 Feb 2009 12:24:59 +0000 (13:24 +0100)]
zshrc: provide upgrade path via /etc/skel/.zshrc
Michael Prokop [Fri, 13 Feb 2009 11:47:27 +0000 (12:47 +0100)]
Add/Update header of /etc/skel/.zshrc and /etc/zsh/zshrc, add debian/NEWS entry
Frank Terbeck [Sun, 8 Feb 2009 12:33:51 +0000 (13:33 +0100)]
debian/changelog: Updates for various commits from the temporary ft branch
Frank Terbeck [Mon, 9 Feb 2009 12:59:02 +0000 (13:59 +0100)]
zshrc: Move more commented-out code to skel/.zshrc
This time: $cdpath and $MANWIDTH
All commented-out examples should go into the skel file, because users
should make their specific changes in ~/.zshrc.pre and ~/.zshrc.local.
Having examples in the global rc file would encourage to make changes
there. Besides, commented-out examples make the setup harder to read and
to maintain.
esc [Sun, 8 Feb 2009 03:13:46 +0000 (04:13 +0100)]
adding -f (force) switch to xtrename
xtrename checks if $DISPLAY is set before printing the escape sequence that
changes the xterm title. However, in certain circumstances this may not be an
optimal check. For example: if the shell is running on a remote server which is
headless, but an xterm is being used locally. In this case you can now use
the -f switch to force the escape sequence to be issued regardless of the state
of $DISPLAY.
Frank Terbeck [Fri, 6 Feb 2009 16:28:15 +0000 (17:28 +0100)]
zshrc: provide .. as a completion
There was a bug in some 4.3.x versions of zsh, that enabled the
completion of .. by default. That was a bug!
This change does *not* provide '.' as a possible completion. But that
is easily possible and an according snippet is included among the
examples in etc/skel/.zshrc (commented out, as usual).
Jan-Hendrik Zab [Sun, 1 Feb 2009 19:11:48 +0000 (20:11 +0100)]
Use check_com for screen alias check/execution.
Alexander Steinböck [Fri, 30 Jan 2009 20:04:14 +0000 (21:04 +0100)]
zshrc: Fix status() when $BAUD is unset
There are implementations of getty that don't export $BAUD. In these
cases there is an empty value in the output of the status() function.
This fixes it by only printing the baud-information field in case
$BAUD is set to a non-empty value.
Frank Terbeck [Sun, 11 Jan 2009 19:35:45 +0000 (20:35 +0100)]
zshrc: try to be smarter about the skel warning
In recent zsh versions, we can check the file name of the current code is.
That way, we can add additional information about the warning.
And automatically remove it if that seems reasonable.
Frank Terbeck [Sun, 11 Jan 2009 19:32:25 +0000 (20:32 +0100)]
zshrc: move version check functions further to the front
and restructure some of the code, which will be used differently in an upcoming commit.
Frank Terbeck [Fri, 9 Jan 2009 22:21:12 +0000 (23:21 +0100)]
skel/.zshrc: adjust format to match the other examples
Frank Terbeck [Fri, 9 Jan 2009 16:02:59 +0000 (17:02 +0100)]
zshrc: move all the commented-out code to the skel file
People should not be tempted to change our main config file. We
provide plenty opportunities to tweak the config by .zshrc.pre and
.zshrc.local; users really should use those files.
Frank Terbeck [Wed, 31 Dec 2008 15:30:18 +0000 (16:30 +0100)]
Remove the use of ${rrn}, which is too new for vcs_info in grml
Christian Hofstaedtler [Wed, 31 Dec 2008 15:22:52 +0000 (16:22 +0100)]
apply "PATCH: vcs_info, implement disable-patterns style (2nd try)" from ft
Frank Terbeck [Wed, 31 Dec 2008 13:30:10 +0000 (14:30 +0100)]
Remove .hgtags
...which is useless in a git repo.
Frank Terbeck [Wed, 31 Dec 2008 11:12:59 +0000 (12:12 +0100)]
zshrc: Add a warning about the new zshrc setup files
Since a lot of people will have the .zshrc file from /etc/skel in
their home directory, this should be the-right-thing-to-do[tm].
This adds /etc/skel/zshrc.pre to stop this warning, because it is
useless on grml systems where an up-to-date set of skel files is
used.
Christian Hofstaedtler [Tue, 30 Dec 2008 22:57:49 +0000 (23:57 +0100)]
zshrc: add support for OS X, including fink and macports
Frank Terbeck [Sun, 21 Dec 2008 14:04:49 +0000 (15:04 +0100)]
zshrc: Unification cleanup - Episode V
Move genzshrefcard.pl setup variables to the end of the file.
Frank Terbeck [Sun, 21 Dec 2008 14:02:43 +0000 (15:02 +0100)]
zshrc: Unification cleanup - Episode IV
Do not source .zshenv it should have been sourced by zsh anyway...
Frank Terbeck [Sun, 21 Dec 2008 13:51:23 +0000 (14:51 +0100)]
zshrc: Unification cleanup - Episode III
Remove zshskel alias.
It's useless to source empty files. :-)
Frank Terbeck [Sun, 21 Dec 2008 13:49:25 +0000 (14:49 +0100)]
zshrc: Unification cleanup - Episode II
Update zsh-help() to reflect the new layout.
Frank Terbeck [Sun, 21 Dec 2008 13:15:11 +0000 (14:15 +0100)]
zshrc: Unification cleanup - Episode I
zsh-gen-refcard comment
Frank Terbeck [Tue, 16 Dec 2008 12:44:58 +0000 (13:44 +0100)]
zshrc: adding zg()
This is a function that let's you grep for patterns in grml's zshrc
depending on if you want to search for code for non-root or root users.
Frank Terbeck [Tue, 16 Dec 2008 11:01:50 +0000 (12:01 +0100)]
Loading .zshrc.pre if it exists
Frank Terbeck [Tue, 16 Dec 2008 10:57:01 +0000 (11:57 +0100)]
Remove skel files...
Well, not entirely. Removing .zshrc.grmlsmall.
Leaving .zshrc with only a message in it to leave it untouched and
use ${HOME}/.zshrc.local for private adjustments.
Frank Terbeck [Tue, 16 Dec 2008 10:49:50 +0000 (11:49 +0100)]
zshrc: Remove some unneeded code
Frank Terbeck [Tue, 16 Dec 2008 10:44:06 +0000 (11:44 +0100)]
Merging all zshrc files into one
That is skel/.zshrc{,.grmlsmall} + etc/zsh/zshrc => etc/zsh/zshrc.
Michael Prokop [Tue, 27 Jan 2009 20:58:25 +0000 (21:58 +0100)]
Re-enable exit keybinding in /etc/grml/screenrc
Michael Prokop [Wed, 21 Jan 2009 13:53:57 +0000 (14:53 +0100)]
Enable syntax only if available and do not enable digraph by default in /etc/skel/.vimrc
Frank Terbeck [Fri, 5 Dec 2008 17:51:16 +0000 (18:51 +0100)]
zshrc: Fixing a bug in urlencode()
Apparently, the hex value of an encoded character must be at least 2
digits wide.
Found, explained and fix provided by Baptiste Daroussin. Thanks!
Michael Prokop [Wed, 19 Nov 2008 11:53:41 +0000 (12:53 +0100)]
zshrc: add alias http for running "python -m SimpleHTTPServer"
Michael Prokop [Sun, 2 Nov 2008 22:52:30 +0000 (23:52 +0100)]
zshrc: update function swspeak for new script swspeak-setup
Michael Prokop [Sun, 2 Nov 2008 22:52:06 +0000 (23:52 +0100)]
gitconfig: update alias 'out', fix usage of pager config, add new alias 'tagme'
Frank Terbeck [Mon, 6 Oct 2008 16:30:38 +0000 (18:30 +0200)]
zshrc: set default values for NOPRECMD and friends
I am not exactly sure why this did not complain loudly...
Michael Prokop [Wed, 1 Oct 2008 20:13:16 +0000 (22:13 +0200)]
Update changelog
Michael Prokop [Wed, 1 Oct 2008 19:57:30 +0000 (21:57 +0200)]
Replace hg with git URLs
Michael Prokop [Tue, 30 Sep 2008 08:19:12 +0000 (10:19 +0200)]
Integrate feedback from Gebi, please review again :)
Michael Prokop [Mon, 29 Sep 2008 22:45:12 +0000 (00:45 +0200)]
Add fpu alias to gitconfig ("format-patch-upstream")
Thanks for feedback, ft.
Michael Prokop [Mon, 29 Sep 2008 21:51:36 +0000 (23:51 +0200)]
Extend user section information (we need some further environment variables)
Michael Prokop [Mon, 29 Sep 2008 21:47:30 +0000 (23:47 +0200)]
Do not enable user section by default
Grml User [Mon, 29 Sep 2008 21:09:18 +0000 (23:09 +0200)]
Initial version of ~/.gitconfig - please review
Integrated stuff from Frank:
http://www.bewatermyfriend.org/media/dot_gitconfig