Add sysutils/z

It's sortof like fzf meets cd

z tracks your most used directories, based on 'frecency'.

After  a  short  learning  phase, z will take you to the most 'frecent'
directory that matches ALL of the regexes given on the command line, in
order.

For example, z foo bar would match /foo/bar but not /bar/foo. Because
they're regexes, z f b would take you to /foo/bar as well.

z is designed for use only with zsh and bash.

WWW: https://github.com/rupa/z/
This commit is contained in:
Adam Weinberger 2019-04-20 14:51:53 +00:00
parent 16ca09fed5
commit ede56be858
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=499445
5 changed files with 47 additions and 0 deletions

View File

@ -1521,6 +1521,7 @@
SUBDIR += xvidcap
SUBDIR += yadm
SUBDIR += yank
SUBDIR += z
SUBDIR += zap
SUBDIR += zbackup
SUBDIR += zeitgeist

28
sysutils/z/Makefile Normal file
View File

@ -0,0 +1,28 @@
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
PORTNAME= z
PORTVERSION= 1.11
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= adamw@FreeBSD.org
COMMENT= Takes you to your most used directories, based on "frecency"
LICENSE= WTFPL
USE_GITHUB= yes
GH_ACCOUNT= rupa
NO_BUILD= yes
NO_ARCH= yes
SUB_FILES= pkg-message
PLIST_FILES= ${DATADIR_REL}/z.sh \
man/man1/z.1.gz
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/z.sh ${STAGEDIR}${DATADIR}
${INSTALL_MAN} ${WRKSRC}/z.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>

3
sysutils/z/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1555771303
SHA256 (rupa-z-v1.11_GH0.tar.gz) = 873761c2eaf283c526b87ef272c8c35f70e94ea079fbbc985ba32070638ff963
SIZE (rupa-z-v1.11_GH0.tar.gz) = 5999

View File

@ -0,0 +1,3 @@
To use z, put this command in your .zshrc/.bashrc:
. %%DATADIR%%/z.sh

12
sysutils/z/pkg-descr Normal file
View File

@ -0,0 +1,12 @@
z tracks your most used directories, based on 'frecency'.
After a short learning phase, z will take you to the most 'frecent'
directory that matches ALL of the regexes given on the command line, in
order.
For example, z foo bar would match /foo/bar but not /bar/foo. Because
they're regexes, z f b would take you to /foo/bar as well.
z is designed for use only with zsh and bash.
WWW: https://github.com/rupa/z/