From 58e28825078d46f70afceee8ddf3f094c61433f7 Mon Sep 17 00:00:00 2001 From: TomfromBerlin Date: Mon, 23 Mar 2026 23:43:49 +0100 Subject: [PATCH] Update zramdisk.plugin.zsh --- zramdisk.plugin.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zramdisk.plugin.zsh b/zramdisk.plugin.zsh index 1b9587f..1649661 100644 --- a/zramdisk.plugin.zsh +++ b/zramdisk.plugin.zsh @@ -1,7 +1,6 @@ #!/bin/env zsh 0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}" 0="${ZERO:-${${${(M)${0::=${(%):-%x}}:#/*}:-$PWD/$0}:A}}" -local ZERO="$0" if [[ ${zsh_loaded_plugins[-1]} != */zramdisk && -z ${fpath[(r)${0:h}]} ]] { fpath+=( "${0:h}" ) @@ -10,6 +9,10 @@ if [[ ${zsh_loaded_plugins[-1]} != */zramdisk && -z ${fpath[(r)${0:h}]} ]] { if [[ $PMSPEC != *f* ]] { fpath+=( "${0:h}/functions" ) } +typeset -gA Plugins -source ${0:A:h}/zramdisk.zsh +Plugins[ZRAMDISK]="${0:h}" +typeset -g ZRAMDISK_PLUGIN_DIR="${0:A:h}" +typeset -g ZRAMDISK_FUNC_DIR="${ZRAMDISK_PLUGIN_DIR}/functions" +source ${0:A:h}/zramdisk.zsh