diff options
-rwxr-xr-x | bin/ct | 6 | ||||
-rw-r--r-- | man/1/ct.pod | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -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}" diff --git a/man/1/ct.pod b/man/1/ct.pod index 8306368..5ae7743 100644 --- a/man/1/ct.pod +++ b/man/1/ct.pod @@ -95,6 +95,9 @@ Update local/remote package list (both if no argument is given) =back +For all actions which expect a I<package> as argument, if the first argument +is C<< . >>, the package related to the current working directory will be used. + =head2 SHORT ACTIONS Instead of the I<action>s described above, you may also use their short @@ -128,7 +131,7 @@ so please see caretaker.conf(5) for more information. =over -=item F<~/.caretaker.conf> +=item F<~/.config/caretaker/caretaker.conf> or F<~/.caretaker.conf> Contains configuration vars |