diff options
author | davidovski <david@davidovski.xyz> | 2023-05-17 16:57:17 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-05-17 16:57:17 +0100 |
commit | 2d38e1368cc264b7f12c5552bdd65339e0873cb9 (patch) | |
tree | d5c1298e2087065a96260e7471b7f2e7d66e4548 /src/lib/xilib.sh | |
parent | 0fecdfa55c12ab7ebb20cc1e7074a04e63e2547b (diff) |
Fix issues wth xitui not showing text
Diffstat (limited to 'src/lib/xilib.sh')
-rw-r--r-- | src/lib/xilib.sh | 12 |
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 |