Completion pour OpenVZ (ZSH)

Voici un début de complétion pour OpenVZ:

Au fur et à mesure, le script sera mis à jour.

OpenRC + Baselayout 2

Voici un projet initié par Roy Marples alias UberLord qui a fait un excellent travail avec ce script de RC programmé en C et “Unix-Compliant”. Grace à lui, votre machine démarre de 1 à 3 fois plus vite selon la configuration.

Pour pouvoir installer OpenRC,
il faut en premier lieu installer “layman”,
et installer “git”,
pour enfin ajouter l’overlay de openrc comme ceci : “layman -a openrc”.

Ensuite il ne vous reste plus qu’a faire “emerge -uDNav openrc” et vous voila parti pour 5 à 6 minutes d’installation grand maximum, il faudra juste penser que certains des fichiers de configuration sont “useless” tel que le bon vieux “/etc/modules.autoload/kernel-2.x” qui est remplacé par “/etc/conf.d/modules”. OpenRC ne vous manquera pas de le faire remarquer à la fin de l’installation dans les explications “post-install”.

Merci Roy pour ce travail très abouti !

Blog de monsieur

I Like Zsh

The Z shell (zsh) is a Unix shell that can be used as an interactive login shell and as a powerful command interpreter for shell scripting. Zsh can be thought of as an extended bourne shell with a large number of improvements, including some of the most useful features of bash, ksh, and tcsh.

The first version of zsh was written by Paul Falstad in 1990 when he was a student at Princeton University. The name zsh derives from Zhong Shao, then a teaching assistant at Princeton University. Paul Falstad thought that Shao’s login name, “zsh”, was a good name for a shell.

Features of note include:

  • Programmable command line completion that can help the user type both options and arguments for most used commands, with out-of-the-box support for several hundred commands
  • Sharing of command history among all running shells
  • Extended file globbing allows file specification without needing to run an external program such as find
  • Improved variable/array handling
  • Editing of multi-line commands in a single buffer
  • Spelling correction
  • Various compatibility modes, e.g. zsh can pretend to be a Bourne shell when run as /bin/sh
  • Themeable prompts, including the ability to put prompt information on the right side of the screen and have it auto-hide when typing a long command
  • Fully customizable

Attesting to the sheer size of this shell is the first sentence of the shell’s manual page, which reads “Because zsh contains many features, the zsh manual has been split into a number of sections”, and then goes on to list thirteen items.