ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] git и alias'ы
@ 2009-06-26 14:50 Alexey I. Froloff
  2009-06-26 14:54 ` Ivan Fedorov
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Alexey I. Froloff @ 2009-06-26 14:50 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

Очень привык к комплишну, уже на автомате набираю две-три буквы
команды и жмакаю Tab, а git checkout начал конкретно доставать:

$ git che<Tab>
---- git command ----
...
(материмся)
$ git check<Tab>
---- git command ----
...
(материмся)

И в итоге completion оказывается бесполезен.

Делаем вид, что бранч это такой специального вида каталог:

$ alias gcd='git checkout'

Как раз три буквы, и комплитить не надо.  И чтобы работал
комплишн аргументов (zsh only):

$ compdef _git-checkout gcd

Ура!

$ gcd <Tab>
---- branch-name ----
...
---- tag-name ----
...
---- index file ----
...

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2009-07-19 21:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-26 14:50 [sisyphus] git и alias'ы Alexey I. Froloff
2009-06-26 14:54 ` Ivan Fedorov
2009-06-26 14:55   ` Led
2009-06-26 15:21     ` Ivan Fedorov
2009-06-26 15:25       ` Alexey I. Froloff
2009-06-26 15:14   ` Alexey I. Froloff
2009-06-26 16:34   ` Andrey Rahmatullin
2009-06-26 16:43     ` Ivan Fedorov
2009-06-26 16:56       ` Andrey Rahmatullin
2009-06-26 17:08         ` Ivan Fedorov
2009-06-26 17:11           ` Andrey Rahmatullin
2009-06-26 17:26             ` Ivan Fedorov
2009-06-26 17:38 ` Slava Semushin
2009-06-26 17:47   ` Alexey I. Froloff
2009-06-26 17:50     ` Slava Semushin
2009-07-19 21:29 ` Alexey I. Froloff

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git