Skip to content

Commit

Permalink
Add sysutils/z
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
assistcontrol committed Apr 20, 2019
1 parent 114ae4f commit 1abcd70
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,7 @@
SUBDIR += xvidcap
SUBDIR += yadm
SUBDIR += yank
SUBDIR += z
SUBDIR += zap
SUBDIR += zbackup
SUBDIR += zeitgeist
Expand Down
28 changes: 28 additions & 0 deletions sysutils/z/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Created by: Adam Weinberger <[email protected]>
# $FreeBSD$

PORTNAME= z
PORTVERSION= 1.11
DISTVERSIONPREFIX= v
CATEGORIES= sysutils

MAINTAINER= [email protected]
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 changes: 3 additions & 0 deletions sysutils/z/distinfo
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions sysutils/z/files/pkg-message.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To use z, put this command in your .zshrc/.bashrc:

. %%DATADIR%%/z.sh
12 changes: 12 additions & 0 deletions sysutils/z/pkg-descr
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 1abcd70

Please sign in to comment.