From a30ca03696de1d32006752ff62d1eeecf93ed91f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 21 Sep 2017 21:21:59 -0300 Subject: Utility functions: ls and location --- stowpkg | 8 ++++++++ 1 file changed, 8 insertions(+) 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" -- cgit v1.2.3