aboutsummaryrefslogtreecommitdiffstats
path: root/.tcsh/completion/pkgtools_completion.tcsh
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-06-21 22:44:06 +0800
committerWeitian LI <liweitianux@gmail.com>2014-06-21 22:44:06 +0800
commit886eab400e2883b9424243b72af3002896781e02 (patch)
treef730ba706478a1e8fcafcefc8b7c1f5f4b4d57e2 /.tcsh/completion/pkgtools_completion.tcsh
parentb35be1d080b8abcbe989dc2687d61b4b2d450099 (diff)
downloaddotfiles-886eab400e2883b9424243b72af3002896781e02.tar.bz2
Updated & Added configuration files.
Added: * .calendar (BSD calendar) * .config/openbox/ * .config/tint2/ * .rtorrent.rc * .screenrc * .tcsh/, .tcshrc, .tcshrc.local Updated: * .gitignore * .lftp/rc * .tmux.conf
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@@"
+