aboutsummaryrefslogtreecommitdiffstats
path: root/_tcsh/completion/pkgtools_completion.tcsh
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-06 15:48:32 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-06 15:48:32 +0800
commitb7dc7fcde02f1774b0d14dc6edcec662f3c6e579 (patch)
tree2288fcc7b06bc2a15cf54ed8a76efcf3d2e3b318 /_tcsh/completion/pkgtools_completion.tcsh
parenta804d0436a98faffb6d3179697aaee9473548593 (diff)
downloaddotfiles-b7dc7fcde02f1774b0d14dc6edcec662f3c6e579.tar.bz2
Rename .tcsh* => _tcsh*
Diffstat (limited to '_tcsh/completion/pkgtools_completion.tcsh')
-rw-r--r--_tcsh/completion/pkgtools_completion.tcsh22
1 files changed, 22 insertions, 0 deletions
diff --git a/_tcsh/completion/pkgtools_completion.tcsh b/_tcsh/completion/pkgtools_completion.tcsh
new file mode 100644
index 0000000..5767c16
--- /dev/null
+++ b/_tcsh/completion/pkgtools_completion.tcsh
@@ -0,0 +1,22 @@
+#!/bin/csh
+#
+# $Id: complete.sample 52 2006-01-01 06:26:59Z koma2 $
+
+if ($?PORTSDIR == 0) then
+ setenv PORTSDIR /usr/ports
+endif
+
+if ($?PKG_DBDIR == 0) then
+ setenv PKG_DBDIR /var/db/pkg
+endif
+
+complete pkg_create "n@-b@D:$PKG_DBDIR@@"
+complete pkg_deinstall "p@*@D:$PKG_DBDIR@@"
+complete pkg_fetch 'p@*@`ls $PKG_DBDIR | sed "s,\(.*\)-.*,\1," `@@'
+complete pkg_which "c@*@D:$PKG_DBDIR@@" "o@*@D:$PKG_DBDIR@@"
+complete pkgdb "c@*@D:$PKG_DBDIR@@" "o@*@D:$PKG_DBDIR@@"
+complete portinstall "p@*@D:$PORTSDIR@"
+complete ports_glob "p@*@D:$PORTSDIR@"
+complete portupgrade "n@-o@D:$PORTSDIR@" "p@*@D:$PKG_DBDIR@@"
+complete portversion "p@*@D:$PKG_DBDIR@@"
+