summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-17 16:57:17 +0100
committerdavidovski <david@davidovski.xyz>2023-05-17 16:57:17 +0100
commit2d38e1368cc264b7f12c5552bdd65339e0873cb9 (patch)
treed5c1298e2087065a96260e7471b7f2e7d66e4548 /src
parent0fecdfa55c12ab7ebb20cc1e7074a04e63e2547b (diff)
Fix issues wth xitui not showing text
Diffstat (limited to 'src')
-rw-r--r--src/lib/xilib.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/xilib.sh b/src/lib/xilib.sh
index 57dd10c..5c662a9 100644
--- a/src/lib/xilib.sh
+++ b/src/lib/xilib.sh
@@ -32,3 +32,15 @@ reverse_lines () {
}
+#!/bin/sh
+
+basename () {
+ name=$1
+ suf=$2
+ pre=${name%/*}
+ name=${name#$pre/}
+
+ echo ${name#$suf}
+}
+
+basename