zsh-workers
 help / color / mirror / code / Atom feed
* Honor the dvorak option in tetris (patch)
@ 2006-09-05 11:47 Mikael Magnusson
  2006-09-05 12:10 ` Frank Terbeck
  2006-09-05 13:45 ` Clint Adams
  0 siblings, 2 replies; 4+ messages in thread
From: Mikael Magnusson @ 2006-09-05 11:47 UTC (permalink / raw)
  To: zsh-workers

Here is a small patch to honor the dvorak option in tetris, not sure
if there is a better way to check options from scripts than
setopt|grep name?
http://mikachu.ath.cx/patches/zsh-dvorak_tetris.patch

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Honor the dvorak option in tetris (patch)
  2006-09-05 11:47 Honor the dvorak option in tetris (patch) Mikael Magnusson
@ 2006-09-05 12:10 ` Frank Terbeck
  2006-09-05 13:45 ` Clint Adams
  1 sibling, 0 replies; 4+ messages in thread
From: Frank Terbeck @ 2006-09-05 12:10 UTC (permalink / raw)
  To: zsh-workers

Mikael Magnusson <mikachu@gmail.com>:
> [...], not sure if there is a better way to check options from
> scripts than setopt|grep name?

[snip]
if [[ $options[dvorak] = 'on' ]] ; then
  print dvorak on
else
  print dvorak off
fi
[snap]

Regards, Frank


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Honor the dvorak option in tetris (patch)
  2006-09-05 11:47 Honor the dvorak option in tetris (patch) Mikael Magnusson
  2006-09-05 12:10 ` Frank Terbeck
@ 2006-09-05 13:45 ` Clint Adams
  2006-09-05 15:18   ` Mikael Magnusson
  1 sibling, 1 reply; 4+ messages in thread
From: Clint Adams @ 2006-09-05 13:45 UTC (permalink / raw)
  To: Mikael Magnusson; +Cc: zsh-workers

> Here is a small patch to honor the dvorak option in tetris, not sure
> if there is a better way to check options from scripts than
> setopt|grep name?

[[ -o dvorak ]] && print dvorak is on


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Honor the dvorak option in tetris (patch)
  2006-09-05 13:45 ` Clint Adams
@ 2006-09-05 15:18   ` Mikael Magnusson
  0 siblings, 0 replies; 4+ messages in thread
From: Mikael Magnusson @ 2006-09-05 15:18 UTC (permalink / raw)
  To: zsh-workers

On 9/5/06, Clint Adams <clint@zsh.org> wrote:
> > Here is a small patch to honor the dvorak option in tetris, not sure
> > if there is a better way to check options from scripts than
> > setopt|grep name?
>
> [[ -o dvorak ]] && print dvorak is on

Okay, updated patch at http://mikachu.ath.cx/patches/zsh-dvorak_tetris2.patch

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-05 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-05 11:47 Honor the dvorak option in tetris (patch) Mikael Magnusson
2006-09-05 12:10 ` Frank Terbeck
2006-09-05 13:45 ` Clint Adams
2006-09-05 15:18   ` Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).