summaryrefslogtreecommitdiff
path: root/sh/aliases
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-11 23:00:21 -0500
committerzachir <zachir@librem.one>2022-10-11 23:00:21 -0500
commitc9c285ee7a638e4c455b0b9c546a4a417cdfda33 (patch)
treea3cb40ab56f91a02d75971a96ebec1302c90bb7d /sh/aliases
parentd372f94ed1af0962a1d073ebc9c9030f3ddd5066 (diff)
fix sh/aliases on openbsd
Diffstat (limited to 'sh/aliases')
-rw-r--r--sh/aliases2
1 files changed, 1 insertions, 1 deletions
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