]> git.madduck.net Git - etc/zsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

properly initialise fonts on first load
authormartin f. krafft <madduck@madduck.net>
Mon, 5 May 2008 14:28:02 +0000 (15:28 +0100)
committermartin f. krafft <madduck@madduck.net>
Mon, 5 May 2008 14:28:02 +0000 (15:28 +0100)
.zsh/zshrc/70_termfonts

index d55f056e0aa068f1707eb514a66a759aaa92361c..916b5a5dc0dad37ad1f01c3a9fe3cf55bd04fba7 100644 (file)
@@ -14,7 +14,7 @@ _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-13-120-75-75-c-80-iso10646-1'
 _XTERM_FONTS+='-misc-fixed-medium-*-*-*-15-*-*-*-*-*-iso10646-1'
 _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso10646-1'
 _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-20-200-75-75-c-100-iso10646-1'
 _XTERM_FONTS+='-misc-fixed-medium-*-*-*-15-*-*-*-*-*-iso10646-1'
 _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso10646-1'
 _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-20-200-75-75-c-100-iso10646-1'
-integer -g _XTERM_FONT
+_XTERM_FONT=${_XTERM_FONT:=1}
 
 _set_xterm_font() {
   if [ $1 -lt 1 ]; then
 
 _set_xterm_font() {
   if [ $1 -lt 1 ]; then
@@ -30,7 +30,7 @@ _set_xterm_font() {
   info "selecting font: $_XTERM_FONTS[$_XTERM_FONT]"
   echo -en "\033]50;$_XTERM_FONTS[$1]\007"
 }
   info "selecting font: $_XTERM_FONTS[$_XTERM_FONT]"
   echo -en "\033]50;$_XTERM_FONTS[$1]\007"
 }
-_set_xterm_font ${_XTERM_FONT:-1}
+#_set_xterm_font $_XTERM_FONT 2>/dev/null
 
 f++() { _set_xterm_font $((_XTERM_FONT + 1)) }
 f--() { _set_xterm_font $((_XTERM_FONT - 1)) }
 
 f++() { _set_xterm_font $((_XTERM_FONT + 1)) }
 f--() { _set_xterm_font $((_XTERM_FONT - 1)) }