forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
114ae4f
commit 1abcd70
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |