From c9c285ee7a638e4c455b0b9c546a4a417cdfda33 Mon Sep 17 00:00:00 2001
From: zachir <zachir@librem.one>
Date: Tue, 11 Oct 2022 23:00:21 -0500
Subject: fix sh/aliases on openbsd

---
 sh/aliases | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sh/aliases')

diff --git a/sh/aliases b/sh/aliases
index 055c797..974a1d7 100644
--- a/sh/aliases
+++ b/sh/aliases
@@ -45,7 +45,7 @@ alias gd='git diff'
 
 ## Single Chars
 alias r='cd ~ && clear && exec $SHELL'
-case "$(echo $0 | xargs basename)" in
+case "$(echo $0 | sed 's/^-*//' | xargs basename)" in
   "zsh") alias e='. $ZDOTDIR/.zshrc' ;;
   "ksh"|"oksh") alias e='. ~/.config/kshrc' ;;
 esac
-- 
cgit v1.2.3