From ffa106fad9b08f73fc3023fe6c2b02cdf37a89c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Tue, 1 Dec 2020 14:32:39 +0100 Subject: [PATCH] src/pn: new script --- src/pn | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 src/pn diff --git a/src/pn b/src/pn new file mode 100755 index 0000000..2a8167a --- /dev/null +++ b/src/pn @@ -0,0 +1,10 @@ +#!/bin/sh + + +trap 'exit 128' INT + + +cd "${1:-$(pwd)}" || exit 1 + +path="$(git rev-parse --show-prefix)" +echo "${path%/}"