http://forums.archlinux.fr/topic1396-15.html qui dérivait

Hors-sujet: oui mais peut-on avoir des prompts de geek sous zsh

Oui et même beaucoup plus que sous bash : déjà ton prompt est découpé en 5 parties possibles :warnaud a écrit :Hors-sujet: oui mais peut-on avoir des prompts de geek sous zsh?
cf 4. posts plus hautSkunnyk a écrit :Au passage, une depeche de bapt sur linuxfr sur la sortie de nouvelles version de zsh : http://linuxfr.org/2008/02/03/23650.html
Code : Tout sélectionner
# key bindings
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history
bindkey "\e[3~" delete-char
bindkey "\e[2~" quoted-insert
bindkey "\e[5C" forward-word
bindkey "\eOc" emacs-forward-word
bindkey "\e[5D" backward-word
bindkey "\eOd" emacs-backward-word
bindkey "\e\e[C" forward-word
bindkey "\e\e[D" backward-word
bindkey "^H" backward-delete-word
# for rxvt
bindkey "\e[8~" end-of-line
bindkey "\e[7~" beginning-of-line
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
# for freebsd console
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
# completion in the middle of a line
bindkey '^i' expand-or-complete-prefix
Code : Tout sélectionner
# $Id: PKGBUILD,v 1.22 2007/07/13 05:57:54 eric Exp $
# Maintainer: aurelien <aurelien@archlinux.org>
# Contributor: Jochem Kossen <j.kossen@home.nl>
pkgname=zsh
pkgver=4.3.5
pkgrel=1
pkgdesc="A very advanced and programmable command interpreter (shell) for UNIX"
arch=('i686' 'x86_64')
url="http://www.zsh.org/"
license=('custom')
depends=('ncurses')
install="zsh.install"
source=(ftp://ftp.zsh.org/pub/$pkgname-$pkgver.tar.bz2 usr_zsh.sh)
md5sums=('db0d4b71da8e5877fa1e29d4cea38b8c'
'7b7afc638a9274cc16a3546ca2fff2ff')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --bindir=/bin \
--enable-etcdir=/etc/zsh \
--enable-zshenv=/etc/zsh/zshenv \
--enable-zlogin=/etc/zsh/zlogin \
--enable-zlogout=/etc/zsh/zlogout \
--enable-zprofile=/etc/profile \
--enable-zshrc=/etc/zsh/zshrc \
--enable-maildir-support \
--with-curses-terminfo \
--enable-multibyte \
--enable-zsh-secure-free
make || return 1
make DESTDIR=$startdir/pkg install
install -D -m 755 $startdir/src/usr_zsh.sh $startdir/pkg/usr/bin/zsh
install -D -m644 LICENCE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
}
Ne te bat pas avec tes fonts, c'est un problème d'unicode, bah oui le package zsh officiel ne supporte pas l'unicode cf mon post précédent, d'ailleurs pour ceux qui veulent jouer avec le nouveau support ncurses préfèreront utiliser aussi le PKGBUILD posté ci-dessus.warnaud a écrit :Bon, je m'amuse bien, j'ai choisi le prompt adam2(les autres apparaissant bizarrement, surement un délire de fonts)
Oui j'ai les accès, mais je l'ai pétéwarnaud a écrit :Oki
Je peux le compiler et le mettre sur archlinuxfr?
On t'as pas filé l'accès (d'ailleurs)?
Code : Tout sélectionner
pkgname=zsh
pkgver=4.3.5
pkgrel=1
pkgdesc="A very advanced and programmable command interpreter (shell) for UNIX"
arch=('i686' 'x86_64')
url="http://www.zsh.org/"
license=('custom')
depends=('ncurses')
install="zsh.install"
source=(ftp://ftp.zsh.org/pub/$pkgname-$pkgver.tar.bz2 usr_zsh.sh)
md5sums=('db0d4b71da8e5877fa1e29d4cea38b8c'
'7b7afc638a9274cc16a3546ca2fff2ff')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --bindir=/bin \
--enable-etcdir=/etc/zsh \
--enable-zshenv=/etc/zsh/zshenv \
--enable-zlogin=/etc/zsh/zlogin \
--enable-zlogout=/etc/zsh/zlogout \
--enable-zprofile=/etc/profile \
--enable-zshrc=/etc/zsh/zshrc \
--enable-maildir-support \
--with-term-lib="ncursesw" \
--enable-multibyte \
--enable-function-subdirs \
--enable-zsh-mem \
--with-tcsetpgrp \
--enable-zsh-secure-free
make || return 1
make DESTDIR=$startdir/pkg install
install -D -m 755 $startdir/src/usr_zsh.sh $startdir/pkg/usr/bin/zsh
install -D -m644 LICENCE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
}