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
Joerg Jaspert [Fri, 22 Mar 2013 12:33:44 +0000 (13:33 +0100)]
hist_lex_words only exists since 4.3.11
Joerg Jaspert [Fri, 22 Mar 2013 10:32:52 +0000 (11:32 +0100)]
non-forking read of debian_chroot var
Joerg Jaspert [Fri, 22 Mar 2013 10:18:40 +0000 (11:18 +0100)]
taken from grml, fixing the percent sign
commit
d9c3851ad99948d96e6faf12142dfcbfd4e0ee61
Author: Frank Terbeck <ft@grml.org>
Date: Fri Mar 15 22:21:22 2013 +0100
Fix `percent' token in the new prompt
See also:
5ef5260128becce09ba1f6ddcc5395892cba3ff2
This is a little embarrassing.
Reported-by: cstamas on #gmrl
Signed-off-by: Frank Terbeck <ft@grml.org>
Joerg Jaspert [Fri, 22 Mar 2013 09:38:52 +0000 (10:38 +0100)]
move the stty command out of 00_Basics
put it into the zshlate sample file, as only some people (may) need it
Joerg Jaspert [Thu, 21 Mar 2013 22:35:38 +0000 (23:35 +0100)]
automagically link zshenv.local
Joerg Jaspert [Thu, 21 Mar 2013 22:26:46 +0000 (23:26 +0100)]
.
Joerg Jaspert [Thu, 21 Mar 2013 22:26:10 +0000 (23:26 +0100)]
.
Joerg Jaspert [Thu, 21 Mar 2013 22:20:55 +0000 (23:20 +0100)]
redefine keybindings with a more readable syntax, as seen from prezto
Joerg Jaspert [Thu, 21 Mar 2013 22:20:30 +0000 (23:20 +0100)]
new alias for git grep
Joerg Jaspert [Thu, 21 Mar 2013 22:20:21 +0000 (23:20 +0100)]
unused
Joerg Jaspert [Thu, 21 Mar 2013 22:20:13 +0000 (23:20 +0100)]
drop whitespace
Joerg Jaspert [Thu, 21 Mar 2013 22:19:57 +0000 (23:19 +0100)]
use setvar and respect settings as given in zshenv.local
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Joerg Jaspert [Thu, 21 Mar 2013 22:18:08 +0000 (23:18 +0100)]
drop function keyword
Joerg Jaspert [Thu, 21 Mar 2013 22:17:48 +0000 (23:17 +0100)]
new function setvar
easily set a variable using defaults as provided on call
- or from zstyle environment
Joerg Jaspert [Thu, 21 Mar 2013 22:16:29 +0000 (23:16 +0100)]
adjust path entries
Joerg Jaspert [Thu, 21 Mar 2013 22:16:10 +0000 (23:16 +0100)]
adjust text for ooooooooooold zsh version
Joerg Jaspert [Thu, 21 Mar 2013 22:15:45 +0000 (23:15 +0100)]
dont set an errorcode when zshlate does not exist
Joerg Jaspert [Thu, 21 Mar 2013 22:15:23 +0000 (23:15 +0100)]
unused, remove
Joerg Jaspert [Thu, 21 Mar 2013 19:45:52 +0000 (20:45 +0100)]
prompt items fit docu
Joerg Jaspert [Thu, 21 Mar 2013 18:37:47 +0000 (19:37 +0100)]
missing colon
Joerg Jaspert [Thu, 21 Mar 2013 14:31:44 +0000 (15:31 +0100)]
remove default styles as documented in zshenv.local.sample
Joerg Jaspert [Thu, 21 Mar 2013 14:31:15 +0000 (15:31 +0100)]
document styles
Joerg Jaspert [Thu, 21 Mar 2013 14:11:31 +0000 (15:11 +0100)]
allow extra files for settings
There is $ZDOTDIR/zshenv.local now, which can take all kinds of settings
one wants that the default config does not give. Example of it is
zshenv.local.sample, copy over whatever you want.
Note that the zshenv.local file can not depend on any settings done later
in the config! For that see below.
That also means, if you for example, setup prompt colors there, ensure to
place the variables into '' so they are not expanded on config read, but
later!
For settings that depend on the zsh config to be loaded, use the file
$ZDOTDIR/.zshlate (only loaded in interactive shells) or the zsh standard
file $ZDOTDIR/.zlogin (only loaded in login shells)
Joerg Jaspert [Thu, 21 Mar 2013 10:53:06 +0000 (11:53 +0100)]
Document the other new options
Joerg Jaspert [Thu, 21 Mar 2013 10:49:07 +0000 (11:49 +0100)]
Add colon item, no color, token :
remove : from pts item
use colon item
Joerg Jaspert [Thu, 21 Mar 2013 10:28:14 +0000 (11:28 +0100)]
also define grey color
Joerg Jaspert [Thu, 21 Mar 2013 10:07:16 +0000 (11:07 +0100)]
indentation fixup
Joerg Jaspert [Thu, 21 Mar 2013 09:58:58 +0000 (10:58 +0100)]
magic space binding
Joerg Jaspert [Mon, 18 Mar 2013 21:51:19 +0000 (22:51 +0100)]
update
Joerg Jaspert [Mon, 18 Mar 2013 21:51:12 +0000 (22:51 +0100)]
no longer alias tmux
Joerg Jaspert [Mon, 18 Mar 2013 21:51:01 +0000 (22:51 +0100)]
remove debug lala
Joerg Jaspert [Mon, 18 Mar 2013 10:07:25 +0000 (11:07 +0100)]
add new alias, adjust help
Joerg Jaspert [Sun, 17 Mar 2013 22:56:21 +0000 (23:56 +0100)]
updates and bugfixes
Joerg Jaspert [Sun, 17 Mar 2013 22:55:54 +0000 (23:55 +0100)]
ignore compiled files
Joerg Jaspert [Sun, 17 Mar 2013 22:55:36 +0000 (23:55 +0100)]
dirstackfile defined
Joerg Jaspert [Sun, 17 Mar 2013 22:55:23 +0000 (23:55 +0100)]
zrecompile
Joerg Jaspert [Sat, 16 Mar 2013 12:37:06 +0000 (13:37 +0100)]
use -1 not 99
M .zsh/net:debian.org/host:franck/Prompts.zsh
Joerg Jaspert [Fri, 15 Mar 2013 22:20:33 +0000 (23:20 +0100)]
move cache down, add an option for kill
Joerg Jaspert [Fri, 15 Mar 2013 22:20:05 +0000 (23:20 +0100)]
brrr. back to my previous way, not inserting directly
Joerg Jaspert [Thu, 14 Mar 2013 13:16:37 +0000 (14:16 +0100)]
Rename bracket to parentheses
Joerg Jaspert [Thu, 14 Mar 2013 13:02:46 +0000 (14:02 +0100)]
parentheses renamed
Joerg Jaspert [Thu, 14 Mar 2013 13:02:31 +0000 (14:02 +0100)]
Define some more useful defaults
Joerg Jaspert [Thu, 14 Mar 2013 00:01:13 +0000 (01:01 +0100)]
.
Joerg Jaspert [Wed, 13 Mar 2013 23:44:58 +0000 (00:44 +0100)]
Note the promptsubst
Joerg Jaspert [Wed, 13 Mar 2013 23:10:01 +0000 (00:10 +0100)]
fixup the host specific files
Joerg Jaspert [Wed, 13 Mar 2013 22:51:42 +0000 (23:51 +0100)]
mention from where i got the idea
Joerg Jaspert [Wed, 13 Mar 2013 22:36:00 +0000 (23:36 +0100)]
directly run the prefunc. also, use the right line in the dinstall file
Joerg Jaspert [Wed, 13 Mar 2013 22:19:39 +0000 (23:19 +0100)]
more prompt fun
Joerg Jaspert [Tue, 12 Mar 2013 16:56:37 +0000 (17:56 +0100)]
lotsa changes (oh yay, we love good commit msgs)
Joerg Jaspert [Mon, 11 Mar 2013 23:36:53 +0000 (00:36 +0100)]
more prompt fun
Joerg Jaspert [Mon, 11 Mar 2013 12:17:27 +0000 (13:17 +0100)]
adjust prompt
Joerg Jaspert [Mon, 11 Mar 2013 00:15:06 +0000 (01:15 +0100)]
adjust help of prompt. also add some more help files
Joerg Jaspert [Mon, 11 Mar 2013 00:11:47 +0000 (01:11 +0100)]
Mode change
Joerg Jaspert [Mon, 11 Mar 2013 00:11:31 +0000 (01:11 +0100)]
cd home before running mr
Joerg Jaspert [Mon, 11 Mar 2013 00:11:18 +0000 (01:11 +0100)]
use 60_Modules for more module loading
Joerg Jaspert [Mon, 11 Mar 2013 00:10:56 +0000 (01:10 +0100)]
Tab fixes and some magic quotes functions
Joerg Jaspert [Mon, 11 Mar 2013 00:10:23 +0000 (01:10 +0100)]
2 new options - ignore all dupes and remove blanks
Joerg Jaspert [Mon, 11 Mar 2013 00:09:50 +0000 (01:09 +0100)]
Rework of my prompt
Joerg Jaspert [Mon, 11 Mar 2013 00:01:07 +0000 (01:01 +0100)]
new is437 to check for that zsh version. also move where we set the debian_chroot variable
Joerg Jaspert [Mon, 11 Mar 2013 00:00:07 +0000 (01:00 +0100)]
New helper for colors
Joerg Jaspert [Wed, 6 Mar 2013 15:58:33 +0000 (16:58 +0100)]
ssh function uses rxvt now, not xterm. more compatible
udh doesnt do so many / removals
Joerg Jaspert [Wed, 6 Mar 2013 07:16:30 +0000 (08:16 +0100)]
add dist-config to move into a new host
A .zsh/functions/dist-config
D .zsh/functions/logout
D .zsh/functions/mcdrom
D .zsh/functions/reallyexit
M .zsh/install.zsh
Joerg Jaspert [Tue, 5 Mar 2013 15:08:02 +0000 (16:08 +0100)]
finally, all as files
A .zsh/zsh-syntax-highlighting/.gitignore
A .zsh/zsh-syntax-highlighting/COPYING.md
A .zsh/zsh-syntax-highlighting/README.md
A .zsh/zsh-syntax-highlighting/highlighters/README.md
A .zsh/zsh-syntax-highlighting/highlighters/brackets/README.md
A .zsh/zsh-syntax-highlighting/highlighters/brackets/brackets-highlighter.zsh
A .zsh/zsh-syntax-highlighting/highlighters/brackets/test-data/mismatch-patentheses.zsh
A .zsh/zsh-syntax-highlighting/highlighters/brackets/test-data/nested-parentheses.zsh
A .zsh/zsh-syntax-highlighting/highlighters/brackets/test-data/quoted-patentheses.zsh
A .zsh/zsh-syntax-highlighting/highlighters/brackets/test-data/simple-parentheses.zsh
A .zsh/zsh-syntax-highlighting/highlighters/brackets/test-data/unclosed-patentheses.zsh
A .zsh/zsh-syntax-highlighting/highlighters/brackets/test-data/unclosed-patentheses2.zsh
A .zsh/zsh-syntax-highlighting/highlighters/cursor/README.md
A .zsh/zsh-syntax-highlighting/highlighters/cursor/cursor-highlighter.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/README.md
A .zsh/zsh-syntax-highlighting/highlighters/main/main-highlighter.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/assign.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/multiple-redirections.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/path-space- .zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/path-tilde-home.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/path-tilde-named.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/path.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/simple-command.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/simple-redirection.zsh
A .zsh/zsh-syntax-highlighting/highlighters/main/test-data/unknown-command.zsh
A .zsh/zsh-syntax-highlighting/highlighters/pattern/README.md
A .zsh/zsh-syntax-highlighting/highlighters/pattern/pattern-highlighter.zsh
A .zsh/zsh-syntax-highlighting/highlighters/root/README.md
A .zsh/zsh-syntax-highlighting/highlighters/root/root-highlighter.zsh
A .zsh/zsh-syntax-highlighting/tests/README.md
A .zsh/zsh-syntax-highlighting/tests/test-highlighting.zsh
A .zsh/zsh-syntax-highlighting/tests/test-perfs.zsh
A .zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
A .zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Joerg Jaspert [Tue, 5 Mar 2013 15:03:55 +0000 (16:03 +0100)]
i hate submodules.
D .zsh/zsh-syntax-highlighting
Joerg Jaspert [Tue, 5 Mar 2013 15:03:29 +0000 (16:03 +0100)]
A .zsh/zsh-syntax-highlighting
Joerg Jaspert [Tue, 5 Mar 2013 15:03:22 +0000 (16:03 +0100)]
remove
D .zsh/zsh-syntax-highlighting