head	2.1;
access;
symbols
	3_0_1:2.1
	3_0_0:2.0;
locks;
comment	@# @;


2.1
date	96.10.25.19.56.58;	author hzoli;	state Exp;
branches;
next	2.0;

2.0
date	96.10.25.19.55.52;	author hzoli;	state Exp;
branches;
next	;


desc
@Function emulationg old zsh pushd
@


2.1
log
@First version
@
text
@# pushd function to emulate the old zsh behaviour.  With this function
# pushd +/-n just lifts the selected element to the top of the stack
# instead of just cycling the stack.

setopt localoptions
emulate -R zsh

if [[ ARGC -eq 1 && "$1" == [+-]<-> ]] then
	setopt pushdignoredups
	builtin pushd ~$1
else
	builtin pushd "$@@"
fi
@


2.0
log
@empty dummy revision
@
text
@d1 13
@
