diff --git a/.gitmodules b/.gitmodules index 3c847cb3d..5725fd8d3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -6,4 +6,4 @@ url = https://github.com/zsh-users/zsh-syntax-highlighting.git [submodule "custom/themes/powerlevel10k"] path = custom/themes/powerlevel10k - url = https://gitee.com/romkatv/powerlevel10k.git + url = https://github.com/romkatv/powerlevel10k.git diff --git a/custom/plugins/zsh-autosuggestions b/custom/plugins/zsh-autosuggestions new file mode 160000 index 000000000..a411ef3e0 --- /dev/null +++ b/custom/plugins/zsh-autosuggestions @@ -0,0 +1 @@ +Subproject commit a411ef3e0992d4839f0732ebeb9823024afaaaa8 diff --git a/custom/plugins/zsh-syntax-highlighting b/custom/plugins/zsh-syntax-highlighting new file mode 160000 index 000000000..1386f1213 --- /dev/null +++ b/custom/plugins/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit 1386f1213eb0b0589d73cd3cf7c56e6a972a9bfd diff --git a/custom/themes/powerlevel10k b/custom/themes/powerlevel10k new file mode 160000 index 000000000..017395a26 --- /dev/null +++ b/custom/themes/powerlevel10k @@ -0,0 +1 @@ +Subproject commit 017395a266aa15011c09e64e44a1c98ed91c478c diff --git a/tools/install.sh b/tools/install.sh index c885e7dfc..393a01de7 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -274,53 +274,6 @@ setup_color() { FMT_RESET=$(printf '\033[0m') } -setup_ohmyzsh() { - # Prevent the cloned repository from having insecure permissions. Failing to do - # so causes compinit() calls to fail with "command not found: compdef" errors - # for users with insecure umasks (e.g., "002", allowing group writability). Note - # that this will be ignored under Cygwin by default, as Windows ACLs take - # precedence over umasks except for filesystems mounted with option "noacl". - umask g-w,o-w - - echo "${FMT_BLUE}Cloning Oh My Zsh...${FMT_RESET}" - - command_exists git || { - fmt_error "git is not installed" - exit 1 - } - - ostype=$(uname) - if [ -z "${ostype%CYGWIN*}" ] && git --version | grep -Eq 'msysgit|windows'; then - fmt_error "Windows/MSYS Git is not supported on Cygwin" - fmt_error "Make sure the Cygwin git package is installed and is first on the \$PATH" - exit 1 - fi - - # Manual clone with git config options to support git < v1.7.2 - git init --quiet "$ZSH" && cd "$ZSH" \ - && git config core.eol lf \ - && git config core.autocrlf false \ - && git config fsck.zeroPaddedFilemode ignore \ - && git config fetch.fsck.zeroPaddedFilemode ignore \ - && git config receive.fsck.zeroPaddedFilemode ignore \ - && git config oh-my-zsh.remote origin \ - && git config oh-my-zsh.branch "$BRANCH" \ - && git remote add origin "$REMOTE" \ - && git fetch --depth=1 origin \ - && git checkout -b "$BRANCH" "origin/$BRANCH" || { - [ ! -d "$ZSH" ] || { - cd - - rm -rf "$ZSH" 2>/dev/null - } - fmt_error "git clone of oh-my-zsh repo failed" - exit 1 - } - # Exit installation directory - cd - - - echo -} - setup_zshrc() { # Keep most recent old .zshrc at .zshrc.pre-oh-my-zsh, and older ones # with datestamp of installation that moved them aside, so we never actually @@ -507,34 +460,11 @@ main() { exit 1 fi - if [ -d "$ZSH" ]; then - echo "${FMT_YELLOW}The \$ZSH folder already exists ($ZSH).${FMT_RESET}" - if [ "$custom_zsh" = yes ]; then - cat <