aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss8
1 files changed, 7 insertions, 1 deletions
diff --git a/kiss b/kiss
index 9053c2c..727829c 100755
--- a/kiss
+++ b/kiss
@@ -1263,7 +1263,13 @@ args() {
case $action in
b|build|c|checksum|i|install|r|remove)
- [ "$1" ] || set -- "${PWD##*/}" ; esac
+ [ "$1" ] || {
+ # We are exporting the KISS_PATH, so if another
+ # instance of 'kiss' is spawned from the current
+ # one, they continue to use the same KISS_PATH
+ export KISS_PATH="${PWD%/*}"
+ set -- "${PWD##*/}"
+ } ; esac
# Actions can be abbreviated to their first letter. This saves
# keystrokes once you memorize the commands.