Archive for tag: zsh
4 August, 2010 (06:30) | zsh, [English Posts] | By: Wolfgang
Back in May I did a blog post about how to batch rename files with Zshell's zmv function. Today I will use zmv to add leading zeros to filenames, so that 1.pdf, 2.pdf, 23.pdf and 102.pdf will become 001.pdf, 002.pdf, 023.pdf and 102.pdf.
zmv '().pdf' '${(l:3::0:)1}.pdf'
This command was found on the Zsh-Lovers page: http://grml.org/zsh/zsh-lovers.html.
Tags: leading zeros, zsh |
1 August, 2010 (06:30) | zsh, [English Posts] | By: Wolfgang
A great feature of the Zshell is its possibility to share the history between multiple shell (screen) sessions or even multiple physical hosts.
To do so, make sure the following options are set in your zsh configuration (usually ~/.zshrc):
setopt append_history
setopt share_history
From now on, the history is shared amongst all zsh sessions on your computer. If ...
Tags: history, zsh |
28 July, 2010 (06:30) | zsh, [English Posts] | By: Wolfgang
If you want to avoid that certain commands are saved in your $HISTFILE (usually ~/.zsh_history), just place a space in front of the actual command. This is useful for trivial commands like pwd, ls and cd or if you're using commands with passwords in them (which isn't a good idea anyway).
If it doesn't work, ...
Tags: history, zsh |
24 June, 2010 (06:30) | Linux, Mac OS X, zsh, [English Posts] | By: Wolfgang
One fast way to generate grayscale images named *.grayscale.png from multiple *.png images with ImageMagick is to use the zsh command for i (*.png) convert -colorspace Gray $i ${i%.*}.grayscale.png. If you want to override the existing images use for i (*.png) convert -colorspace Gray $i $i instead.
The zsh option short_loops has to be set ...
Tags: ImageMagick, Linux, Mac OS X, zsh |
17 June, 2010 (06:30) | Vim, zsh, [English Posts] | By: Wolfgang
Today just a short link to a nice collection of useful Z-shell commands:
http://zzapper.co.uk/zshtips.html.
By the way, the authors Vim tips are great too: http://zzapper.co.uk/vimtips.html.
Tags: Vim, zsh |
14 June, 2010 (06:30) | Linux, Mac OS X, zsh, [Deutschsprachige Einträge] | By: Wolfgang
Viele Benutzer, die bestimmte Aufgaben des täglichen Computeralltags auf der Kommandozeile erledigen oder erledigen müssen, setzen dabei aus gutem Grund auf die Z-Shell. Auch wenn an anderen Shells - wie beispielsweise die auf vielen Linux-Systemen als Standard eingerichtete Bash - beginnen, zsh-Features nachzubilden, ist die zsh an vielen Stellen deutlich überlegen.
Das Anpassen der Z-Shell ...
Tags: Guckes, Open Source Press, Plenz, Z-Shell, zsh |
16 May, 2010 (23:49) | Linux, UNIX, [English Posts] | By: Wolfgang
To automatically start GNU screen every time you log into your zsh shell just put the following command into your $HOME/.zprofile:
screen -DR
The advantage of placing the command in the .zprofile file is that it is only read by login shells. The -DR option creates a new screen session or reattaches a running one. The ...
Tags: Linux, screen, UNIX, zsh |
5 May, 2010 (21:45) | zsh, [English Posts] | By: Wolfgang
Problem: Before further processing them you have to rename a bunch of files in the form of forename surname.png to surname_forename.png.
Solution: One fast way to solve this is to use the zmv function of your Z shell. The only prerequisite is to make sure zmv is loaded either by executing autoload zmv interactively or ...
Tags: Linux, UNIX, zsh | 1 comment