2 Commits 04007a0e5d ... 114b58ed4e

Author SHA1 Message Date
  Carlo Sala 114b58ed4e fix(git): disable locally `ksharrays` 4 weeks ago
  Carlo Sala 6d0362ef2f fix(archlinux): make `upgrade` work with non-english 4 weeks ago
2 changed files with 4 additions and 2 deletions
  1. 2 0
      lib/git.zsh
  2. 2 2
      plugins/archlinux/archlinux.plugin.zsh

+ 2 - 0
lib/git.zsh

@@ -40,12 +40,14 @@ function _omz_git_prompt_info() {
 # Enable async prompt by default unless the setting is at false / no
 if zstyle -T ':omz:alpha:lib:git' async-prompt; then
   function git_prompt_info() {
+    setopt localoptions noksharrays
     if [[ -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_info]" ]]; then
       echo -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_info]"
     fi
   }
 
   function git_prompt_status() {
+    setopt localoptions noksharrays
     if [[ -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_status]" ]]; then
       echo -n "$_OMZ_ASYNC_OUTPUT[_omz_git_prompt_status]"
     fi

+ 2 - 2
plugins/archlinux/archlinux.plugin.zsh

@@ -179,8 +179,8 @@ fi
 # Check Arch Linux PGP Keyring before System Upgrade to prevent failure.
 function upgrade() {
   echo ":: Checking Arch Linux PGP Keyring..."
-  local installedver="$(sudo pacman -Qi archlinux-keyring | grep -Po '(?<=Version         : ).*')"
-  local currentver="$(sudo pacman -Si archlinux-keyring | grep -Po '(?<=Version         : ).*')"
+  local installedver="$(LANG= sudo pacman -Qi archlinux-keyring | grep -Po '(?<=Version         : ).*')"
+  local currentver="$(LANG= sudo pacman -Si archlinux-keyring | grep -Po '(?<=Version         : ).*')"
   if [ $installedver != $currentver ]; then
     echo " Arch Linux PGP Keyring is out of date."
     echo " Updating before full system upgrade."