From cffe46b50353a88c584334b1fc610961de73aa8e Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Fri, 7 Jan 2022 20:55:58 -0500 Subject: [PATCH 1/2] Add zim-branch --- frameworks/zim-branch1.zsh | 29 +++++++++++++++++++++++++++++ frameworks/zim-branch2.zsh | 29 +++++++++++++++++++++++++++++ frameworks/zim-branch3.zsh | 29 +++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 frameworks/zim-branch1.zsh create mode 100644 frameworks/zim-branch2.zsh create mode 100644 frameworks/zim-branch3.zsh diff --git a/frameworks/zim-branch1.zsh b/frameworks/zim-branch1.zsh new file mode 100644 index 0000000..4c0f7d4 --- /dev/null +++ b/frameworks/zim-branch1.zsh @@ -0,0 +1,29 @@ +() { +local -r home_dir=${1} + +# download the repository +command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${home_dir} zsh + +command sleep 1 +# add modules to .zshrc +>! ${home_dir}/.zimrc <<\END +zmodule environment +zmodule git +zmodule input +zmodule termtitle +zmodule utility + +zmodule duration-info +zmodule git-info +zmodule asciiship + +zmodule zsh-users/zsh-completions --fpath src +zmodule completion --branch generate-dat-file + +zmodule zsh-users/zsh-syntax-highlighting +zmodule zsh-users/zsh-history-substring-search +zmodule zsh-users/zsh-autosuggestions +END + +HOME=${home_dir} zsh -ic 'zimfw update' +} "${@}" diff --git a/frameworks/zim-branch2.zsh b/frameworks/zim-branch2.zsh new file mode 100644 index 0000000..ebf5590 --- /dev/null +++ b/frameworks/zim-branch2.zsh @@ -0,0 +1,29 @@ +() { +local -r home_dir=${1} + +# download the repository +command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${home_dir} zsh + +command sleep 1 +# add modules to .zshrc +>! ${home_dir}/.zimrc <<\END +zmodule environment +zmodule git +zmodule input +zmodule termtitle +zmodule utility + +zmodule duration-info +zmodule git-info +zmodule asciiship + +zmodule zsh-users/zsh-completions --fpath src +zmodule completion --branch check-dat-file + +zmodule zsh-users/zsh-syntax-highlighting +zmodule zsh-users/zsh-history-substring-search +zmodule zsh-users/zsh-autosuggestions +END + +HOME=${home_dir} zsh -ic 'zimfw update' +} "${@}" diff --git a/frameworks/zim-branch3.zsh b/frameworks/zim-branch3.zsh new file mode 100644 index 0000000..ca20d4e --- /dev/null +++ b/frameworks/zim-branch3.zsh @@ -0,0 +1,29 @@ +() { +local -r home_dir=${1} + +# download the repository +command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${home_dir} zsh + +command sleep 1 +# add modules to .zshrc +>! ${home_dir}/.zimrc <<\END +zmodule environment +zmodule git +zmodule input +zmodule termtitle +zmodule utility + +zmodule duration-info +zmodule git-info +zmodule asciiship + +zmodule zsh-users/zsh-completions --fpath src +zmodule completion --branch compinit + +zmodule zsh-users/zsh-syntax-highlighting +zmodule zsh-users/zsh-history-substring-search +zmodule zsh-users/zsh-autosuggestions +END + +HOME=${home_dir} zsh -ic 'zimfw update' +} "${@}" From d9e5699b0e43124b9b19ab083a2cd7280c884fa9 Mon Sep 17 00:00:00 2001 From: Eric Nielsen <4120606+ericbn@users.noreply.github.com> Date: Sat, 6 May 2023 20:04:05 -0500 Subject: [PATCH 2/2] Test use-home-in-init-zsh branch --- frameworks/zim-branch1.zsh | 23 ++--------------------- frameworks/zim-branch2.zsh | 29 ----------------------------- frameworks/zim-branch3.zsh | 29 ----------------------------- 3 files changed, 2 insertions(+), 79 deletions(-) delete mode 100644 frameworks/zim-branch2.zsh delete mode 100644 frameworks/zim-branch3.zsh diff --git a/frameworks/zim-branch1.zsh b/frameworks/zim-branch1.zsh index 4c0f7d4..b3b653b 100644 --- a/frameworks/zim-branch1.zsh +++ b/frameworks/zim-branch1.zsh @@ -5,25 +5,6 @@ local -r home_dir=${1} command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${home_dir} zsh command sleep 1 -# add modules to .zshrc ->! ${home_dir}/.zimrc <<\END -zmodule environment -zmodule git -zmodule input -zmodule termtitle -zmodule utility - -zmodule duration-info -zmodule git-info -zmodule asciiship - -zmodule zsh-users/zsh-completions --fpath src -zmodule completion --branch generate-dat-file - -zmodule zsh-users/zsh-syntax-highlighting -zmodule zsh-users/zsh-history-substring-search -zmodule zsh-users/zsh-autosuggestions -END - -HOME=${home_dir} zsh -ic 'zimfw update' +command curl -fsSL -o ${home_dir}/.zim/zimfw.zsh https://raw.githubusercontent.com/zimfw/zimfw/use-home-in-init-zsh/zimfw.zsh +HOME=${home_dir} zsh -ic 'zimfw build' } "${@}" diff --git a/frameworks/zim-branch2.zsh b/frameworks/zim-branch2.zsh deleted file mode 100644 index ebf5590..0000000 --- a/frameworks/zim-branch2.zsh +++ /dev/null @@ -1,29 +0,0 @@ -() { -local -r home_dir=${1} - -# download the repository -command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${home_dir} zsh - -command sleep 1 -# add modules to .zshrc ->! ${home_dir}/.zimrc <<\END -zmodule environment -zmodule git -zmodule input -zmodule termtitle -zmodule utility - -zmodule duration-info -zmodule git-info -zmodule asciiship - -zmodule zsh-users/zsh-completions --fpath src -zmodule completion --branch check-dat-file - -zmodule zsh-users/zsh-syntax-highlighting -zmodule zsh-users/zsh-history-substring-search -zmodule zsh-users/zsh-autosuggestions -END - -HOME=${home_dir} zsh -ic 'zimfw update' -} "${@}" diff --git a/frameworks/zim-branch3.zsh b/frameworks/zim-branch3.zsh deleted file mode 100644 index ca20d4e..0000000 --- a/frameworks/zim-branch3.zsh +++ /dev/null @@ -1,29 +0,0 @@ -() { -local -r home_dir=${1} - -# download the repository -command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${home_dir} zsh - -command sleep 1 -# add modules to .zshrc ->! ${home_dir}/.zimrc <<\END -zmodule environment -zmodule git -zmodule input -zmodule termtitle -zmodule utility - -zmodule duration-info -zmodule git-info -zmodule asciiship - -zmodule zsh-users/zsh-completions --fpath src -zmodule completion --branch compinit - -zmodule zsh-users/zsh-syntax-highlighting -zmodule zsh-users/zsh-history-substring-search -zmodule zsh-users/zsh-autosuggestions -END - -HOME=${home_dir} zsh -ic 'zimfw update' -} "${@}"