You are not logged in.

#1 2014-08-09 13:29:39

SteveSapolsky
Member
Registered: 2014-08-09
Posts: 16

[SOLVED] How to install oh-my-zsh with yaourt?

I'm using yaourt to install oh-my-zsh-git from the user repository. However, I can't figure out how what to do next. I copied the template config of OMZsh:

cp /usr/share/oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

But it seems that the installation was incomplete because there's no ~/.oh-my-zsh folder. Ash zsh complains that there's no such folder on start.

How to property install oh-my-zsh using a package manager? Or should I just perhaps not use the package manager and install it manually using:

 curl -L http://install.ohmyz.sh | sh  

Last edited by SteveSapolsky (2014-08-09 13:47:21)

Offline

#2 2014-08-09 13:38:05

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] How to install oh-my-zsh with yaourt?

Follow the instructions you were shown when installing the package.

You have to execute 'cp /usr/share/oh-my-zsh/zshrc ~/.zshrc' to use it.

Last edited by Slithery (2014-08-09 13:38:55)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-08-09 13:40:34

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] How to install oh-my-zsh with yaourt?

Packages on Archlinux never touch user home folders .

you're probably expected to create it yourself, check yaourt / pacman log for messages install time.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2014-08-09 13:46:59

SteveSapolsky
Member
Registered: 2014-08-09
Posts: 16

Re: [SOLVED] How to install oh-my-zsh with yaourt?

slithery wrote:

Follow the instructions you were shown when installing the package.

You have to execute 'cp /usr/share/oh-my-zsh/zshrc ~/.zshrc' to use it.

Ok thank you. Now it works.

I re-installed it using yaourt just to see where those instructions were, but I did not find any. They are either no longer there or I'm a bit blind.

Offline

#5 2014-08-09 16:28:04

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] How to install oh-my-zsh with yaourt?

$ cat oh-my-zsh-git/oh-my-zsh-git.install
post_install () {
	echo "You have to execute 'cp /usr/share/oh-my-zsh/zshrc ~/.zshrc' to use it."
}

post_remove () {
	echo "Please remove ~/.zshrc to avoid errors."
}

Offline

#6 2014-08-09 16:34:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to install oh-my-zsh with yaourt?

I'm not using yaourt and I don't know what command exactly did you run - please include such details in your posts.

$ pacscripts oh-my-zsh-git
post_install () {
        echo "You have to execute 'cp /usr/share/oh-my-zsh/zshrc ~/.zshrc' to use it."
}

post_remove () {
        echo "Please remove ~/.zshrc to avoid errors."
}

Seems to work as expected, with info being printed to the console on install and removal.

Installing the package does print the information:

$ makepkg -si oh-my-zsh-git

<snip>

==> Finished making: oh-my-zsh-git 2667.1b7a3ea-1 (Sat Aug  9 18:24:08 CEST 2014)
==> Installing package oh-my-zsh-git with pacman -U...
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (1):

Name           New Version     Net Change

oh-my-zsh-git  2667.1b7a3ea-1    1.51 MiB

Total Installed Size:   1.51 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                        [######################################] 100%
(1/1) checking package integrity                                      [######################################] 100%
(1/1) loading package files                                           [######################################] 100%
(1/1) checking for file conflicts                                     [######################################] 100%
(1/1) checking available disk space                                   [######################################] 100%
(1/1) installing oh-my-zsh-git                                        [######################################] 100%
You have to execute 'cp /usr/share/oh-my-zsh/zshrc ~/.zshrc' to use it.
Optional dependencies for oh-my-zsh-git
    ruby: for some plugin functionality

This information is not being printed on update, as it's assumed you have already properly configured the installed software:

$ makepkg -si

<snipp>

==> Finished making: oh-my-zsh-git 2667.1b7a3ea-1 (Sat Aug  9 18:26:14 CEST 2014)
==> Installing package oh-my-zsh-git with pacman -U...
loading packages...
warning: oh-my-zsh-git-2667.1b7a3ea-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Packages (1):

Name           Old Version     New Version     Net Change

oh-my-zsh-git  2667.1b7a3ea-1  2667.1b7a3ea-1    0.00 MiB

Total Installed Size:   1.51 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                        [######################################] 100%
(1/1) checking package integrity                                      [######################################] 100%
(1/1) loading package files                                           [######################################] 100%
(1/1) checking for file conflicts                                     [######################################] 100%
(1/1) checking available disk space                                   [######################################] 100%
(1/1) reinstalling oh-my-zsh-git                                      [######################################] 100%

On removing the package:

$ pacman -Rns oh-my-zsh-git
checking dependencies...

Packages (2):

Name           Old Version     Net Change

zsh            5.0.5-1          -4.53 MiB
oh-my-zsh-git  2667.1b7a3ea-1   -1.51 MiB

Total Removed Size:   6.04 MiB

:: Do you want to remove these packages? [Y/n]
(1/2) removing oh-my-zsh-git                                          [######################################] 100%
Please remove ~/.zshrc to avoid errors.
(2/2) removing zsh 

And on reinstall:

$ makepkg -si

<snip>

==> Finished making: oh-my-zsh-git 2667.1b7a3ea-1 (Sat Aug  9 18:28:50 CEST 2014)
==> Installing package oh-my-zsh-git with pacman -U...
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (1):

Name           New Version     Net Change

oh-my-zsh-git  2667.1b7a3ea-1    1.51 MiB

Total Installed Size:   1.51 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                        [######################################] 100%
(1/1) checking package integrity                                      [######################################] 100%
(1/1) loading package files                                           [######################################] 100%
(1/1) checking for file conflicts                                     [######################################] 100%
(1/1) checking available disk space                                   [######################################] 100%
(1/1) installing oh-my-zsh-git                                        [######################################] 100%
You have to execute 'cp /usr/share/oh-my-zsh/zshrc ~/.zshrc' to use it.
Optional dependencies for oh-my-zsh-git
    ruby: for some plugin functionality

Offline

#7 2014-08-09 17:52:45

SteveSapolsky
Member
Registered: 2014-08-09
Posts: 16

Re: [SOLVED] How to install oh-my-zsh with yaourt?

karol wrote:

I'm not using yaourt and I don't know what command exactly did you run - please include such details in your posts.

I just ran "yaourt oh-my-zsh-git" again to update it. After your comment, I deleted it completely using "yaourt -R" and installed it again. My bad, indeed it does show the message on the first installation. Sorry for misinformation.

Offline

Board footer

Powered by FluxBB