forked from Eriner/zsh-framework-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
45 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
() { | ||
local -r home_dir=${1} | ||
|
||
# download the install script | ||
command curl -sS -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh >${home_dir}/install.sh | ||
command curl -sS -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh > install.sh | ||
# also remove the automatic-start of the new terminal | ||
# silence the git clone output | ||
command sed -i.bak -e '/env zsh -l/d' -e 's/git clone/git clone --quiet/g' ${home_dir}/install.sh | ||
command sed -i.bak -e '/env zsh -l/d' -e 's/git clone/git clone --quiet/g' install.sh | ||
|
||
# run though sh as per the instructions | ||
HOME=${home_dir} ZSH=${home_dir}/.oh-my-zsh sh ${home_dir}/install.sh --unattended | ||
HOME=${PWD} ZSH=${PWD}/.oh-my-zsh sh install.sh --unattended | ||
|
||
# grab zsh-syntax-highlighting | ||
command git clone --quiet https://github.com/zsh-users/zsh-autosuggestions ${home_dir}/.oh-my-zsh/custom/plugins/zsh-autosuggestions | ||
command git clone --quiet https://github.com/zsh-users/zsh-autosuggestions .oh-my-zsh/custom/plugins/zsh-autosuggestions | ||
|
||
# grab zsh-syntax-highlighting | ||
command git clone --quiet https://github.com/zsh-users/zsh-syntax-highlighting.git ${home_dir}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting | ||
command git clone --quiet https://github.com/zsh-users/zsh-syntax-highlighting.git .oh-my-zsh/custom/plugins/zsh-syntax-highlighting | ||
|
||
# we don't need auto-update stuff | ||
# replace the plugin string with the selected plugins | ||
command sed -i.bak -E -e 's/^# (DISABLE_AUTO_UPDATE="true")/\1/' -e 's/^(plugins=\([^\)]*)/\1 git-prompt colored-man-pages common-aliases timer zsh-autosuggestions zsh-syntax-highlighting history-substring-search/' ${home_dir}/.zshrc | ||
} "${@}" | ||
command sed -i.bak -E -e 's/^# (DISABLE_AUTO_UPDATE="true")/\1/' -e 's/^(plugins=\([^\)]*)/\1 git-prompt colored-man-pages common-aliases timer zsh-autosuggestions zsh-syntax-highlighting history-substring-search/' .zshrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
() { | ||
local -r home_dir=${1} | ||
|
||
# download the repository | ||
command git clone --quiet --recursive https://github.com/sorin-ionescu/prezto.git "${home_dir}/.zprezto" | ||
# clone the repository | ||
command git clone --quiet --recursive https://github.com/sorin-ionescu/prezto.git .zprezto | ||
|
||
# follow the install instructions | ||
setopt LOCAL_OPTIONS EXTENDED_GLOB | ||
local rcfile | ||
for rcfile in "${home_dir}"/.zprezto/runcoms/^README.md(.N); do | ||
command ln -s "${rcfile}" "${home_dir}/.${rcfile:t}" | ||
for rcfile in .zprezto/runcoms/^README.md(.N); do | ||
command ln -s "${rcfile}" ".${rcfile:t}" | ||
done | ||
|
||
# add the modules to the .zpreztorc file | ||
command rm -f ${home_dir}/.zpreztorc | ||
command cp ${home_dir}/.zprezto/runcoms/zpreztorc ${home_dir}/.zpreztorc | ||
command sed -i.bak -E -e "/^ *'spectrum' \\\\/d" -e "s/^( *'prompt')/\\1 'git' 'autosuggestions' 'syntax-highlighting' 'history-substring-search'/" ${home_dir}/.zpreztorc | ||
command rm -f .zpreztorc | ||
command cp .zprezto/runcoms/zpreztorc .zpreztorc | ||
command sed -i.bak -E -e "/^ *'spectrum' \\\\/d" -e "s/^( *'prompt')/\\1 'git' 'autosuggestions' 'syntax-highlighting' 'history-substring-search'/" .zpreztorc | ||
|
||
# start login shell | ||
HOME=${home_dir} zsh -lc 'exit' | ||
} "${@}" | ||
HOME=${PWD} zsh -lc 'exit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
() { | ||
local -r home_dir=${1} | ||
|
||
# just set PS1 | ||
>>! ${home_dir}/.zshrc <<\END | ||
>>! .zshrc <<\END | ||
PS1="%~%# " | ||
END | ||
} "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
() { | ||
local -r home_dir=${1} | ||
|
||
# download the repository | ||
command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${home_dir} zsh | ||
} "${@}" | ||
# download the install script | ||
command curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | HOME=${PWD} zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters