Package Details: oh-my-zsh-git r7279.677f5010d-1

Git Clone URL: https://aur.archlinux.org/oh-my-zsh-git.git (read-only, click to copy)
Package Base: oh-my-zsh-git
Description: A community-driven framework for managing your zsh configuration. Includes 180+ optional plugins and over 120 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community
Upstream URL: https://github.com/ohmyzsh/ohmyzsh
Licenses: MIT
Submitter: phoenixlzx
Maintainer: MarcinWieczorek
Last Packager: MarcinWieczorek
Votes: 470
Popularity: 2.78
First Submitted: 2012-10-24 12:04 (UTC)
Last Updated: 2024-06-17 17:21 (UTC)

Dependencies (7)

Sources (2)

Latest Comments

1 2 3 4 5 6 .. 17 Next › Last »

JanusDC commented on 2024-10-31 20:43 (UTC)

I followed @ollosh's instructions, and they worked perfectly. It took me a while to notice that I had to apply @xythrez's patch instead of @quest's, which is the patch just before @ollosh's comment.

fastrespawn commented on 2024-10-31 09:39 (UTC)

@xythrez @ollosh following your isntructions I got it working, thanks

ollosh commented on 2024-10-31 09:25 (UTC)

@loretta a fix from @xythrez worked for me with a small trick being that I needed to generate checksum manually.

  1. Go to wherever your aur cache is for this package (for paru it's .cache/paru/clone/oh-my-zsh-git)
  2. Update 0001-zshrc.patch with contents of their comment
  3. Generate a new checksum with sha256sum 0001-zshrc.patch
  4. Copy the cheksum value and update PKGBUILD on line 26 with that value
  5. Run makepkg -si

That worked for me

quest commented on 2024-10-28 21:00 (UTC)

For those failing to build, here is a working patch.

diff --git a/.SRCINFO b/.SRCINFO
index c59914b..cd7dbb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -16,6 +16,6 @@ pkgbase = oh-my-zsh-git
    source = oh-my-zsh-git::git+https://github.com/ohmyzsh/ohmyzsh.git
    source = 0001-zshrc.patch
    sha256sums = SKIP
-   sha256sums = 83a3733eb5408e9ff7d87c68659c8a2c481e3c5e607ce04c071ab638a1f7e9f3
+   sha256sums = e4d2cf357ce3a482bc217bfce5154a769ecb9a70310b1651360dcc06373b2ef5

 pkgname = oh-my-zsh-git
diff --git a/0001-zshrc.patch b/0001-zshrc.patch
index 62217dc..7768b0f 100644
--- a/0001-zshrc.patch
+++ b/0001-zshrc.patch
@@ -1,15 +1,17 @@
---- a/zshrc    2024-06-17 19:14:58.205443310 +0200
-+++ b/zshrc    2024-06-17 19:14:55.962092937 +0200
+diff --git a/zshrc b/zshrc
+index fa83cc0c..4cde1dc0 100644
+--- a/zshrc
++++ b/zshrc
 @@ -2,7 +2,7 @@
  # export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH

  # Path to your Oh My Zsh installation.
--export ZSH=$HOME/.oh-my-zsh
+-export ZSH="$HOME/.oh-my-zsh"
 +ZSH=/usr/share/oh-my-zsh/

  # Set name of the theme to load --- if set to "random", it will
  # load a random theme each time Oh My Zsh is loaded, in which case,
-@@ -72,8 +72,6 @@
+@@ -72,8 +72,6 @@ ZSH_THEME="robbyrussell"
  # Add wisely, as too many plugins slow down shell startup.
  plugins=(git)

@@ -18,7 +20,7 @@
  # User configuration

  # export MANPATH="/usr/local/man:$MANPATH"
-@@ -102,3 +100,10 @@
+@@ -102,3 +100,10 @@ source $ZSH/oh-my-zsh.sh
  # Example aliases
  # alias zshconfig="mate ~/.zshrc"
  # alias ohmyzsh="mate ~/.oh-my-zsh"
diff --git a/PKGBUILD b/PKGBUILD
index 4ee9888..6de5676 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
 # Contributor: ThinCarrotShrimp <christoph.r.martin+arch at gmail dot com>

 pkgname=oh-my-zsh-git
-pkgver=r7279.677f5010d
+pkgver=r7424.c690f7316
 pkgrel=1
 pkgdesc="A community-driven framework for managing your zsh configuration. Includes 180+ optional plugins and over 120 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community"
 arch=('any')
@@ -23,7 +23,7 @@ install=${pkgname}.install
 source=("${pkgname}::git+https://github.com/ohmyzsh/ohmyzsh.git"
         '0001-zshrc.patch')
 sha256sums=('SKIP'
-            '83a3733eb5408e9ff7d87c68659c8a2c481e3c5e607ce04c071ab638a1f7e9f3')
+            'e4d2cf357ce3a482bc217bfce5154a769ecb9a70310b1651360dcc06373b2ef5')
 # conflicts=('grml-zsh-config'
 #            'grml-zsh-config-git')

loretta commented on 2024-10-28 12:09 (UTC) (edited on 2024-10-28 12:13 (UTC) by loretta)

@xythrez, still doesn't work. I'm getting this error

==> Starting prepare()...
patching file zshrc
Hunk #1 FAILED at 2.
1 out of 3 hunks FAILED -- saving rejects to file zshrc.rej
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: oh-my-zsh-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
 oh-my-zsh-git -exit status 4

xythrez commented on 2024-10-27 21:29 (UTC)

Manual fix for 0001-zshrc.patch:

--- a/zshrc 2024-06-17 19:14:58.205443310 +0200
+++ b/zshrc 2024-06-17 19:14:55.962092937 +0200
@@ -2,7 +2,7 @@
 # export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH

 # Path to your Oh My Zsh installation.
-export ZSH="$HOME/.oh-my-zsh"
+ZSH=/usr/share/oh-my-zsh/

 # Set name of the theme to load --- if set to "random", it will
 # load a random theme each time Oh My Zsh is loaded, in which case,
@@ -72,8 +72,6 @@
 # Add wisely, as too many plugins slow down shell startup.
 plugins=(git)

-source $ZSH/oh-my-zsh.sh
-
 # User configuration

 # export MANPATH="/usr/local/man:$MANPATH"
@@ -102,3 +100,10 @@
 # Example aliases
 # alias zshconfig="mate ~/.zshrc"
 # alias ohmyzsh="mate ~/.oh-my-zsh"
+
+ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
+if [[ ! -d $ZSH_CACHE_DIR ]]; then
+  mkdir $ZSH_CACHE_DIR
+fi
+
+source $ZSH/oh-my-zsh.sh

Update PKGBUILD checksum on line 26 to 7688703d2d304703bbb2e48b1365ef18eeb9ddbf1be6acb787af09ed51e5302a.

Should work for now

Spixmaster commented on 2024-10-27 20:02 (UTC)

Please update as the patch does not work anymore. See https://github.com/ohmyzsh/ohmyzsh/commit/c690f731618959cba3b85500acee20ebf43e51c1.

arseru commented on 2024-09-20 15:40 (UTC) (edited on 2024-09-20 15:40 (UTC) by arseru)

For those of us that have git-fsck features enabled, trying to clone the package during installation fails:

$ git clone https://github.com/ohmyzsh/ohmyzsh.git

Cloning into 'ohmyzsh'...
remote: Enumerating objects: 33623, done.
remote: Counting objects: 100% (1501/1501), done.
remote: Compressing objects: 100% (161/161), done.
error: object 2b7227859263b6aabcc28355b0b994995b7148b6: zeroPaddedFilemode: contains zero-padded file modes
fatal: fsck error in packed object
fatal: fetch-pack: invalid index-pack output

It seems to be caused by a corrupted upstream repo, and since they can't fix it easily, could we maybe have the following fix in this package?

git clone --config transfer.fsckobjects=false --config fetch.fsckobjects=false https://github.com/ohmyzsh/ohmyzsh.git

That command seems to successfully clone the repo in my case.

matejdro commented on 2024-06-24 15:56 (UTC)

It appears cleaning for the second time did the trick. I must have done something wrong when trying to build before. Thanks!