Package Details: oh-my-zsh-git r7424.c690f7316-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: 473
Popularity: 3.62
First Submitted: 2012-10-24 12:04 (UTC)
Last Updated: 2024-11-03 11:29 (UTC)

Dependencies (7)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 17 Next › Last »

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!

MarcinWieczorek commented on 2024-06-24 09:47 (UTC)

@matejdro what are you using to build the package? Make sure you pulled the changes.

matejdro commented on 2024-06-23 05:22 (UTC)

Still failing for me

==> Starting prepare()...
patching file zshrc
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 72 with fuzz 2 (offset 16 lines).
Hunk #3 succeeded at 101 (offset 20 lines).
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

MarcinWieczorek commented on 2024-06-18 09:30 (UTC)

I fixed it already.

Evrenos commented on 2024-06-17 19:05 (UTC)

@Spixmaster go to PKGBUILD of oh-my-zsh-git (.cache/yay/.. or .cache/paru/clone/... to find the folder of omz ) and comment the line "patch -p1 < "${srcdir}/0001-zshrc.patch""

Spixmaster commented on 2024-06-15 19:35 (UTC) (edited on 2024-06-16 08:12 (UTC) by Spixmaster)

A patch fails.

==> Starting prepare()...
patching file zshrc
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 72 with fuzz 2 (offset 16 lines).
Hunk #3 succeeded at 101 (offset 20 lines).
1 out of 3 hunks FAILED -- saving rejects to file zshrc.rej
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'oh-my-zsh-git-r6192.be4a95297-1':
error: packages failed to build: oh-my-zsh-git-r6192.be4a95297-1

zshrc.rej:

--- zshrc   2016-06-26 13:02:54.465316829 +0200
+++ zshrc   2016-06-26 13:01:21.811987209 +0200
@@ -1,5 +1,5 @@
 # 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.
 # Look in ~/.oh-my-zsh/themes/

The cause is a change in the file "zshrc".