summaryrefslogtreecommitdiff
path: root/bin/ct
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ct')
-rwxr-xr-xbin/ct6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ct b/bin/ct
index 84e4332..48c8a39 100755
--- a/bin/ct
+++ b/bin/ct
@@ -977,6 +977,12 @@ function pkg_version {
${$(git --git-dir=${self_path}/.git/ log -n 1)[2]}
}
+# cd ~/packages/caretaker; ct r .
+# -> ct refresh caretaker
+
+if [[ ${1} == . ]] {
+ 1=${${PWD#${PKG_DIR}/}%%/*}
+}
cd ${PKG_DIR} || die "Cannot cd ${PKG_DIR}"