Joerg Jaspert [Mon, 29 Apr 2013 10:42:24 +0000 (12:42 +0200)]
noglob for scp
Joerg Jaspert [Thu, 25 Apr 2013 14:00:14 +0000 (16:00 +0200)]
limit syntax hilight to zsh >=437
Joerg Jaspert [Thu, 25 Apr 2013 08:25:42 +0000 (10:25 +0200)]
Add git-escape-magic
small helper to use setopt extended_glob and still have it nice
with git things like ~, ^, @{...
Joerg Jaspert [Tue, 23 Apr 2013 15:41:16 +0000 (17:41 +0200)]
Comment
Joerg Jaspert [Tue, 23 Apr 2013 15:39:51 +0000 (17:39 +0200)]
move the jj_chpwd addition out of the function file into the environment file
Joerg Jaspert [Sat, 20 Apr 2013 23:17:19 +0000 (01:17 +0200)]
remove dist-config - which was too specific for my case
Joerg Jaspert [Fri, 19 Apr 2013 12:45:44 +0000 (14:45 +0200)]
just use the shortcut zsh has
Joerg Jaspert [Fri, 19 Apr 2013 12:43:35 +0000 (14:43 +0200)]
Adjust keybindings to also work in mc subshell
mc is doing some weird stuff when (trying) to open the subshell,
which breaks with the keybindings we use to insert head|less|grep
and our magic-parentheses.
so we now leave them out when doing subshell in mc - detected by
the env variable MC_SID being set. thats not perfect, but meh, better
than no subshell at all.
Joerg Jaspert [Thu, 18 Apr 2013 14:30:53 +0000 (16:30 +0200)]
load zle widgets in a for loop and (in debug mode) output a nice message
Joerg Jaspert [Thu, 18 Apr 2013 14:30:33 +0000 (16:30 +0200)]
fix flags in debug message
Joerg Jaspert [Thu, 18 Apr 2013 11:11:12 +0000 (13:11 +0200)]
add history-beginning-search-menu binding on C-xC-x
Joerg Jaspert [Sat, 13 Apr 2013 14:29:19 +0000 (16:29 +0200)]
only add dirpersiststore to zshexit hook when dirstackhandling is active
Joerg Jaspert [Sat, 13 Apr 2013 10:31:28 +0000 (12:31 +0200)]
rename the sudo alias to xsudo. we dont want to unconditionallly overwrite the TERM for root
Joerg Jaspert [Sat, 13 Apr 2013 10:07:51 +0000 (12:07 +0200)]
and comment more, so its even less pre-configured by me
M .zsh/zshenv.local.sample
Joerg Jaspert [Sat, 13 Apr 2013 10:01:57 +0000 (12:01 +0200)]
spelling fix
M .zsh/README.org
Joerg Jaspert [Sat, 13 Apr 2013 10:01:10 +0000 (12:01 +0200)]
change dirstackhandling to to default to off.
user can select if they want it by enabling the zstyle and setting
it to one of dirstack or dirpersist
Joerg Jaspert [Thu, 11 Apr 2013 14:42:48 +0000 (16:42 +0200)]
double alias is no good
Joerg Jaspert [Wed, 10 Apr 2013 19:15:09 +0000 (21:15 +0200)]
use $2 in preexec. ignore some zsh "internal" words before commands
Joerg Jaspert [Wed, 10 Apr 2013 18:50:38 +0000 (20:50 +0200)]
Follow Jean-Philippe Ouellets change and s/exit/return/
Joerg Jaspert [Mon, 8 Apr 2013 08:20:35 +0000 (10:20 +0200)]
dont set LANG=Cfor git
Joerg Jaspert [Sun, 7 Apr 2013 22:33:43 +0000 (00:33 +0200)]
resort and add some git aliases.
Joerg Jaspert [Sun, 7 Apr 2013 22:33:04 +0000 (00:33 +0200)]
added extract/ls-archive from sorin ionescu
Joerg Jaspert [Sun, 7 Apr 2013 13:29:39 +0000 (15:29 +0200)]
new way of handling plugins, allow oh-my-zsh plugins too
Plugins now defined per zstyle, only those listed there are loaded
(or a default set if style isnt defined).
and there is a ohmyplugins style now, to allow oh-my-zsh plugins to
be loaded, see README for what to do for this.
Joerg Jaspert [Sun, 7 Apr 2013 13:29:13 +0000 (15:29 +0200)]
update history-substring-search plugin
Joerg Jaspert [Sun, 7 Apr 2013 13:28:37 +0000 (15:28 +0200)]
move global aliases down, add LL and NE
Joerg Jaspert [Sun, 7 Apr 2013 13:28:17 +0000 (15:28 +0200)]
change echo to print
Joerg Jaspert [Sun, 7 Apr 2013 13:22:05 +0000 (15:22 +0200)]
rename files, to have a better series. also adjust keybindings
should you have .local files, you need to follow:
55_KeyBindings -> 80_KeyBindings
65_Editor -> 60_Editor
90_Plugins -> 70_Plugins
92_Exec -> 90_Exec
95_tmuxscreen -> removed, merged into 90_Exec
keybinding changes:
Up/Down are bound to history-substring-search-{up,down}, not up-line-or-search
PageUp/Down are bound to history-beginning-search-{back,for}ward-end
Joerg Jaspert [Sun, 7 Apr 2013 13:12:16 +0000 (15:12 +0200)]
use correct array name
Joerg Jaspert [Fri, 5 Apr 2013 06:08:07 +0000 (08:08 +0200)]
also cycle through grep -v
Joerg Jaspert [Fri, 5 Apr 2013 06:07:21 +0000 (08:07 +0200)]
add the functions needed for some keybindings
Joerg Jaspert [Thu, 4 Apr 2013 22:37:31 +0000 (00:37 +0200)]
make mime setup optional
Joerg Jaspert [Thu, 4 Apr 2013 22:31:12 +0000 (00:31 +0200)]
redo the keybindings. now also with the vi maps.
Joerg Jaspert [Thu, 4 Apr 2013 22:30:34 +0000 (00:30 +0200)]
new styles for the accept-line widget
Joerg Jaspert [Thu, 4 Apr 2013 22:30:10 +0000 (00:30 +0200)]
change keybinding to Control-XControl-G
Joerg Jaspert [Thu, 4 Apr 2013 22:29:50 +0000 (00:29 +0200)]
more functions to destroy at config load end
Joerg Jaspert [Thu, 4 Apr 2013 22:29:35 +0000 (00:29 +0200)]
move where it belongs - into environment
Joerg Jaspert [Thu, 4 Apr 2013 22:28:55 +0000 (00:28 +0200)]
new functions taken from grml, to get a nicer keybinding setup
Joerg Jaspert [Thu, 4 Apr 2013 22:28:35 +0000 (00:28 +0200)]
move into functions file
Joerg Jaspert [Thu, 4 Apr 2013 17:57:40 +0000 (19:57 +0200)]
Move modules to load earlier
Joerg Jaspert [Thu, 4 Apr 2013 08:56:45 +0000 (10:56 +0200)]
use fc -l -1 for "more history in the stats"
Joerg Jaspert [Wed, 3 Apr 2013 21:49:23 +0000 (23:49 +0200)]
zbell prompt
add less to the default ignored commands.
also make drop_words really work, and drop any combination of
the to-be-dropped words from the command string.
That is, we remove the first occurence of
builtin, command, nocorrect, noglob, nohup and LANG=C,
in order to see the "real" command behind it.
Very helpful for aliases like alias man=nocorrect noglob man
which otherwise would beep - even when we dont want em too.
Joerg Jaspert [Wed, 3 Apr 2013 16:44:16 +0000 (18:44 +0200)]
Add copy-prev-shell-word keybinding. add Status/Start/Stop/Restart/Reload function helper
Joerg Jaspert [Wed, 3 Apr 2013 14:15:18 +0000 (16:15 +0200)]
add the link to the gist for zbell
Joerg Jaspert [Wed, 3 Apr 2013 14:09:41 +0000 (16:09 +0200)]
Wah, wrong \
Joerg Jaspert [Wed, 3 Apr 2013 14:08:36 +0000 (16:08 +0200)]
adjust markup
Joerg Jaspert [Wed, 3 Apr 2013 14:03:18 +0000 (16:03 +0200)]
change style, its an ordered list
Joerg Jaspert [Wed, 3 Apr 2013 13:54:03 +0000 (15:54 +0200)]
Update README a bit. Though im sure it can still be written better.
Or reworked. :)
Joerg Jaspert [Wed, 3 Apr 2013 13:53:27 +0000 (15:53 +0200)]
fix error in default display - mandwidths default if unset is 80, not 0
Joerg Jaspert [Wed, 3 Apr 2013 13:21:32 +0000 (15:21 +0200)]
in case the user doesn't symlink but copy the zshenv.home file,
deal with it and fallback to traditional definition where ZDOTDIR
is
Joerg Jaspert [Wed, 3 Apr 2013 12:55:34 +0000 (14:55 +0200)]
detect redhat
Joerg Jaspert [Wed, 3 Apr 2013 12:42:51 +0000 (14:42 +0200)]
vcs_info and battery settings in zshenv.local.sample
they didn't just show the default, they actually had to set it.
Change it so they work like most of the rest of the file - commented
and showing the default.
Joerg Jaspert [Wed, 3 Apr 2013 12:17:15 +0000 (14:17 +0200)]
remove the forced C language for man
Joerg Jaspert [Wed, 3 Apr 2013 12:16:25 +0000 (14:16 +0200)]
Rework the ssh/gpg-agent function
Its now configurable via zstyles, allows automagic and manual mode,
and addition of sshkeys.
Joerg Jaspert [Wed, 3 Apr 2013 08:16:43 +0000 (10:16 +0200)]
Ah sod it, better check for exit level > 9
Joerg Jaspert [Wed, 3 Apr 2013 08:16:02 +0000 (10:16 +0200)]
also ignore error level 8 for screen
Joerg Jaspert [Tue, 2 Apr 2013 21:57:35 +0000 (23:57 +0200)]
some readme text
Joerg Jaspert [Tue, 2 Apr 2013 21:55:49 +0000 (23:55 +0200)]
use ZDOTDIR
Joerg Jaspert [Tue, 2 Apr 2013 21:35:07 +0000 (23:35 +0200)]
flexibly adapt the ZDOTDIR to whatever the user want
doing that by using readlink or greadlink to see where our symlink
for .zshenv points to. Only if that doesnt work, fallback to hardcoded
path.
Joerg Jaspert [Tue, 2 Apr 2013 21:04:55 +0000 (23:04 +0200)]
Remove here
Joerg Jaspert [Tue, 2 Apr 2013 20:59:05 +0000 (22:59 +0200)]
Symlink README.org
Joerg Jaspert [Tue, 2 Apr 2013 20:14:27 +0000 (22:14 +0200)]
Renamed README to README.org
Joerg Jaspert [Tue, 2 Apr 2013 19:47:52 +0000 (21:47 +0200)]
Remove my own config here
Joerg Jaspert [Tue, 2 Apr 2013 19:36:14 +0000 (21:36 +0200)]
Remove files that are plain only for me.
if you want to see them, see http://git.ganneff.de/cgi-bin/gitweb.cgi?p=zsh-ganneff.git;a=summary
D .zsh/install.zsh
D .zsh/net:cms.fra.dlh.de/Aliases.zsh
D .zsh/net:cms.fra.dlh.de/Environment.zsh
D .zsh/net:cms.fra.dlh.de/Exec.zsh
D .zsh/net:debconf.org/Prompts.zsh
D .zsh/net:debconf.org/host:cmburns/Environment.zsh
D .zsh/net:debian.org/Prompts.zsh
D .zsh/net:debian.org/host:chopin/Aliases.zsh
D .zsh/net:debian.org/host:chopin/Environment.zsh
D .zsh/net:debian.org/host:chopin/Exec.zsh
D .zsh/net:debian.org/host:chopin/Hashes.zsh
D .zsh/net:debian.org/host:franck/Aliases.zsh
D .zsh/net:debian.org/host:franck/Environment.zsh
D .zsh/net:debian.org/host:franck/Exec.zsh
D .zsh/net:debian.org/host:franck/Hashes.zsh
D .zsh/net:debian.org/host:franck/Prompts.zsh
D .zsh/net:debian.org/host:morricone/Aliases.zsh
D .zsh/net:debian.org/host:morricone/Environment.zsh
D .zsh/net:debian.org/host:morricone/Exec.zsh
D .zsh/net:debian.org/host:morricone/Hashes.zsh
D .zsh/net:ganneff.de/host:cole/Functions.zsh
D .zsh/net:ganneff.de/host:gkar/Aliases.zsh
D .zsh/net:ganneff.de/host:gkar/Completion.zsh
D .zsh/net:ganneff.de/host:gkar/Environment.zsh
D .zsh/net:ganneff.de/host:gkar/Exec.zsh
D .zsh/net:ganneff.de/host:gkar/Functions.zsh
D .zsh/net:ganneff.de/host:gkar/Hashes.zsh
D .zsh/net:ganneff.de/host:kosh/Exec.zsh
D .zsh/net:oftc.net/host:candela/Environment.zsh
Joerg Jaspert [Tue, 2 Apr 2013 14:39:10 +0000 (16:39 +0200)]
add watch to bell_ignored commands
Joerg Jaspert [Tue, 2 Apr 2013 14:38:21 +0000 (16:38 +0200)]
create tmpdir if it doesnt exist
Joerg Jaspert [Tue, 2 Apr 2013 14:36:45 +0000 (16:36 +0200)]
Show screen/tmux status at start
Joerg Jaspert [Tue, 2 Apr 2013 14:35:38 +0000 (16:35 +0200)]
Fixup drawing in preprint
Joerg Jaspert [Tue, 2 Apr 2013 13:11:53 +0000 (15:11 +0200)]
Add zsh to ignored commands for the prompt bell
dont want to beep on subshell ends.
Joerg Jaspert [Tue, 2 Apr 2013 13:06:34 +0000 (15:06 +0200)]
better way of detecting environment and doing linedraw with utf8 and console and foo
i hate it, why are there so many ways? anyways, for me it works in tmux, screen,
linux console, ssh sessions, x (rxvt, xterm, konsole, gnome-terminal) and various
locales (utf-8 based, posix, iso88591). So i hope it works in other places too.
Joerg Jaspert [Mon, 1 Apr 2013 22:33:51 +0000 (00:33 +0200)]
zbell built into the prompt
Based on the zbell idea from Jean-Philippe Ouellet, see functions/zbell
for that, this is built into the prompt now. There are two zstyles to
control it, one to set the timeout (default 600), one to set the commands
to ignore (default '$EDITOR' '$PAGER' sleep man ssh, as well as the expanded
versions of the variables).
As all the variables and functions are renamed to fit in with all the rest of
the prompt, zbell and this can even be used together. zbells default time is
much shorter, so might make sense. Also, if the timeout is set to 0, none
of the prompt code is loaded, then you need zbell.
Joerg Jaspert [Sun, 31 Mar 2013 12:28:50 +0000 (14:28 +0200)]
Add zbell function
written by Jean-Philippe Ouellet
M .zsh/README
A .zsh/functions/zbell
Joerg Jaspert [Sat, 30 Mar 2013 21:45:09 +0000 (22:45 +0100)]
set the reportime variable
M .zsh/10_Environment.zsh
M .zsh/zshenv.local.sample
Joerg Jaspert [Thu, 28 Mar 2013 12:08:49 +0000 (13:08 +0100)]
add nicemount function
Joerg Jaspert [Thu, 28 Mar 2013 12:00:44 +0000 (13:00 +0100)]
keybindings with variables in work so much better in double than single quotes
Joerg Jaspert [Thu, 28 Mar 2013 11:40:03 +0000 (12:40 +0100)]
Add a function to neatly display the path variable.
actually, it allows to display any array value, if one just sets
the ganneff:config pcolor style correctly.
Joerg Jaspert [Wed, 27 Mar 2013 16:41:14 +0000 (17:41 +0100)]
new function to display path neatly
Joerg Jaspert [Tue, 26 Mar 2013 23:12:48 +0000 (00:12 +0100)]
Change to the is-callable way of life
Joerg Jaspert [Tue, 26 Mar 2013 20:53:18 +0000 (21:53 +0100)]
add alias gdc for git diff --cached
M .zsh/35_Aliases.zsh
Joerg Jaspert [Tue, 26 Mar 2013 20:47:42 +0000 (21:47 +0100)]
modelines
Joerg Jaspert [Tue, 26 Mar 2013 20:47:35 +0000 (21:47 +0100)]
whitespace only
Joerg Jaspert [Tue, 26 Mar 2013 20:39:23 +0000 (21:39 +0100)]
zrecompile option defaults to false
Joerg Jaspert [Tue, 26 Mar 2013 20:15:01 +0000 (21:15 +0100)]
i do have this symlink - but it shouldnt be in git
Joerg Jaspert [Tue, 26 Mar 2013 20:13:50 +0000 (21:13 +0100)]
Merge branch 'master' of git.ganneff.de:zsh
* 'master' of git.ganneff.de:zsh:
multiple changes: New functions, dropped functions, ...
Joerg Jaspert [Tue, 26 Mar 2013 20:13:05 +0000 (21:13 +0100)]
No longer set complete_aliases option
we do want aliases to still complete as if it would be the real command
Joerg Jaspert [Mon, 25 Mar 2013 15:35:24 +0000 (16:35 +0100)]
multiple changes: New functions, dropped functions, ...
new functions is-{callable,alias,builtin,command,function} to check
if something is an alias, builtin, command, function or any of it.
various places now use it, others need to be converted.
new function warn, to just print out an error to stderr
new function zpgrep, either using pgrep or ps and shell handling
to always have a pgrep handy
new zstyle to decide if one likes lesspipe or lessfile more
removed cmd_exists and {normal,privileged}_user functions, unused.
change `` into $()
Joerg Jaspert [Fri, 22 Mar 2013 21:52:29 +0000 (22:52 +0100)]
Add function run
Joerg Jaspert [Fri, 22 Mar 2013 21:18:21 +0000 (22:18 +0100)]
add a small routine and a zstyle to allow showing of startup time
M .zsh/.zshrc
M .zsh/zshenv.home
M .zsh/zshenv.local.sample
Joerg Jaspert [Fri, 22 Mar 2013 20:35:13 +0000 (21:35 +0100)]
dont use path for true
Joerg Jaspert [Fri, 22 Mar 2013 20:33:08 +0000 (21:33 +0100)]
unfunction debug/maybe_compile later
Joerg Jaspert [Fri, 22 Mar 2013 20:27:47 +0000 (21:27 +0100)]
default false
Joerg Jaspert [Fri, 22 Mar 2013 20:23:02 +0000 (21:23 +0100)]
improve
Joerg Jaspert [Fri, 22 Mar 2013 19:57:57 +0000 (20:57 +0100)]
remove zrcautoload, just use autoload
also slightly different call to it
Joerg Jaspert [Fri, 22 Mar 2013 19:40:03 +0000 (20:40 +0100)]
. is source
Joerg Jaspert [Fri, 22 Mar 2013 19:39:38 +0000 (20:39 +0100)]
make zrecompile optional
Joerg Jaspert [Fri, 22 Mar 2013 19:13:00 +0000 (20:13 +0100)]
Enable tracing of the initialization
Joerg Jaspert [Fri, 22 Mar 2013 13:38:59 +0000 (14:38 +0100)]
start a more complete readme
Joerg Jaspert [Fri, 22 Mar 2013 13:37:06 +0000 (14:37 +0100)]
default is dirpersist
Joerg Jaspert [Fri, 22 Mar 2013 13:36:43 +0000 (14:36 +0100)]
rework the dirpersist/dirstack feature
Joerg Jaspert [Fri, 22 Mar 2013 12:37:27 +0000 (13:37 +0100)]
Allow a .local script to load after mine
Joerg Jaspert [Fri, 22 Mar 2013 12:34:00 +0000 (13:34 +0100)]
Better debug output