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:
parent
16ca09fed5
commit
ede56be858
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=499445
@ -1521,6 +1521,7 @@
|
||||
SUBDIR += xvidcap
|
||||
SUBDIR += yadm
|
||||
SUBDIR += yank
|
||||
SUBDIR += z
|
||||
SUBDIR += zap
|
||||
SUBDIR += zbackup
|
||||
SUBDIR += zeitgeist
|
||||
|
28
sysutils/z/Makefile
Normal file
28
sysutils/z/Makefile
Normal 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
3
sysutils/z/distinfo
Normal 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
|
3
sysutils/z/files/pkg-message.in
Normal file
3
sysutils/z/files/pkg-message.in
Normal 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
12
sysutils/z/pkg-descr
Normal 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/
|
Loading…
Reference in New Issue
Block a user