From: Silvio Rhatto Date: Fri, 22 Sep 2017 00:21:59 +0000 (-0300) Subject: Utility functions: ls and location X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a30ca03696de1d32006752ff62d1eeecf93ed91f;p=stowpkg.git Utility functions: ls and location --- diff --git a/stowpkg b/stowpkg index 6ad0bd5..9bcdbe5 100755 --- a/stowpkg +++ b/stowpkg @@ -272,6 +272,14 @@ stowpkg_sources () { ls -1 $SOURCES } +stowpkg_ls () { + ( cd $BASE && ls $* ) +} + +stowpkg_location () { + echo $BASE +} + stowpkg_switch () { local package="$1" local version="$2"