You are not logged in.

#1 2015-03-31 20:26:51

SimenB
Member
From: Norway
Registered: 2015-03-31
Posts: 2

[REQUEST] zsh-autosuggestions

Could any of you awesome people create a git package for this?

https://github.com/tarruda/zsh-autosuggestions

What confuses me is how to move files to $HOME, and then execute the install script, or if that's even necesarry.

I tried looking at the sample PGBUILDS, but got confused quickly. I got as far as:

_name='zsh-autosuggestions'
pkgname="${_name}-git"
pkgver=0.1.60.533325c
pkgrel=1
pkgdesc="Fish-like autosuggestions for zsh"
url="https://github.com/tarruda/zsh-autosuggestions"
arch=('any')
license=('MIT')
depends=('zsh')
makedepends=('git')
install="${_name}.install"
source=("${_name}::${url//https/git}")
sha256sums=('SKIP')

pkgver() {
   cd "${srcdir}/${_name}"
   echo "0.1.$(git rev-list --count HEAD).$(git describe --always )"
}

build() {
    cd "${srcdir}/${_name}"
    sh install
}

The .install is just a simple

post_install() {
    echo "==> See https://github.com/tarruda/zsh-autosuggestions for documentation"
}

All help appreciated!

Offline

#2 2015-03-31 20:31:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [REQUEST] zsh-autosuggestions

PKGBUILDS should never touch $HOME. Look at some of the other Zsh PKGBUILDs in the AUR and see how they manage it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-31 20:59:20

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [REQUEST] zsh-autosuggestions

Why not use something like antigen [1]? It allows you to manage the plugins for ZSH in your .zshrc without having to clone everything yourself. To make things even better, it is packaged in the AUR [2].

Offline

#4 2015-04-01 11:04:31

SimenB
Member
From: Norway
Registered: 2015-03-31
Posts: 2

Re: [REQUEST] zsh-autosuggestions

Hm, I haven't heard of antigen before, but I'm giving it a whack now. I've been using oh-my-zsh for a couple of years, but this seems simpler. Thanks for suggesting it!

Offline

Board footer

Powered by FluxBB