From owner-svn-ports-all@freebsd.org Sat Apr 20 14:51:55 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D515158F999; Sat, 20 Apr 2019 14:51:55 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2A8E93928; Sat, 20 Apr 2019 14:51:54 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BF4CBFA5C; Sat, 20 Apr 2019 14:51:54 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3KEpsue007811; Sat, 20 Apr 2019 14:51:54 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3KEprSO007806; Sat, 20 Apr 2019 14:51:53 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201904201451.x3KEprSO007806@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Sat, 20 Apr 2019 14:51:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499445 - in head/sysutils: . z z/files X-SVN-Group: ports-head X-SVN-Commit-Author: adamw X-SVN-Commit-Paths: in head/sysutils: . z z/files X-SVN-Commit-Revision: 499445 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E2A8E93928 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.946,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Apr 2019 14:51:55 -0000 Author: adamw Date: Sat Apr 20 14:51:53 2019 New Revision: 499445 URL: https://svnweb.freebsd.org/changeset/ports/499445 Log: 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/ Added: head/sysutils/z/ head/sysutils/z/Makefile (contents, props changed) head/sysutils/z/distinfo (contents, props changed) head/sysutils/z/files/ head/sysutils/z/files/pkg-message.in (contents, props changed) head/sysutils/z/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Sat Apr 20 14:38:20 2019 (r499444) +++ head/sysutils/Makefile Sat Apr 20 14:51:53 2019 (r499445) @@ -1521,6 +1521,7 @@ SUBDIR += xvidcap SUBDIR += yadm SUBDIR += yank + SUBDIR += z SUBDIR += zap SUBDIR += zbackup SUBDIR += zeitgeist Added: head/sysutils/z/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/z/Makefile Sat Apr 20 14:51:53 2019 (r499445) @@ -0,0 +1,28 @@ +# Created by: Adam Weinberger +# $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 Added: head/sysutils/z/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/z/distinfo Sat Apr 20 14:51:53 2019 (r499445) @@ -0,0 +1,3 @@ +TIMESTAMP = 1555771303 +SHA256 (rupa-z-v1.11_GH0.tar.gz) = 873761c2eaf283c526b87ef272c8c35f70e94ea079fbbc985ba32070638ff963 +SIZE (rupa-z-v1.11_GH0.tar.gz) = 5999 Added: head/sysutils/z/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/z/files/pkg-message.in Sat Apr 20 14:51:53 2019 (r499445) @@ -0,0 +1,3 @@ +To use z, put this command in your .zshrc/.bashrc: + + . %%DATADIR%%/z.sh Added: head/sysutils/z/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/z/pkg-descr Sat Apr 20 14:51:53 2019 (r499445) @@ -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/