commit 741fab61e2cc9ae62005d4bfb5d0e29c335bcccc parent 2b34e802aa086dfb123a2e1d3e7783ba4b4b9f79 Author: Jacob R. Edwards <n/a> Date: Mon, 22 Nov 2021 14:31:37 -0800 Add script to root a list of paths Diffstat:
| A | local/bin/bin/root | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/local/bin/bin/root b/local/bin/bin/root @@ -0,0 +1,6 @@ +#!/bin/sh +# Copyright 2021 Jacob R. Edwards +# Prefix relative paths with the current working directory + +pwd="$(pwd | sed 's / \\/ g')" +sed "/^[^/]/ s/^/$pwd\//"