Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

added insert-unicode-char
authorMichael Prokop <mika@grml.org>
Sat Feb 24 20:51:18 2007 +0100 (21 months ago)
changeset 931d89aad6f911
manifest1d89aad6f911
parent 92fc49af9c367d
child 9413207a2b97b0
added insert-unicode-char
debian/changelog
etc/zsh/zshrc
--- a/debian/changelog Sat Feb 24 19:23:28 2007 +0100
+++ b/debian/changelog Sat Feb 24 20:51:18 2007 +0100
@@ -5,6 +5,7 @@ grml-etc-core (0.2.23) unstable; urgency
/bin/sh or /bin/bash. :-/
- add a space character in some abbreviation expansions
so it's better readable.
+ - added insert-unicode-char
* /etc/skel/.zshrc:
- added function ytdl (download video from youtube)
- work around non utf8 capable software in utf environment
--- a/etc/zsh/zshrc Sat Feb 24 19:23:28 2007 +0100
+++ b/etc/zsh/zshrc Sat Feb 24 20:51:18 2007 +0100
@@ -3,7 +3,7 @@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Sam Feb 24 19:06:28 CET 2007 [mika]
+# Latest change: Sam Feb 24 20:51:01 CET 2007 [mika]
################################################################################
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
@@ -138,6 +138,13 @@ fi
bindkey '\e[7~' beginning-of-line # home
bindkey '\e[8~' end-of-line # end
#fi
+
+# insert unicode character
+# usage example: 'ctrl-x i' 00A7 'ctrl-x i' will give you an §
+# See for example http://unicode.org/charts/ for unicode characters code
+ autoload insert-unicode-char
+ zle -N insert-unicode-char
+ bindkey '^Xi' insert-unicode-char
# bindkey '\eq' push-line-or-edit
# }}}