First of all, I’m a long-time zsh user. So probably with help of .bashrc you can do these examples in bash. But I’ll write about some zsh usage tips which helps me do things faster here. Also probably you will need a .zshrc in zsh, otherwise it can make you crazy. It’s dangerous to go alone, take my zshrc for example: here. Btw if you use this you’ll get a prompt like:

Here we go,
Fast navigation:
user@computer:$ pwd
/var/lib/dbus
user@computer:$ cd lib run
/var/run/dbus
user@computer:$ pwd
/var/run/dbus
Substitute previous command (use gs instead of s for "replace all"):
user@computer:$ cp /this/is/very/long/lib/path/file.txt /this/is/the/destination/
user@computer:$ !!:s/lib/proc/
cp /this/is/very/long/proc/path/file.txt /this/is/the/destination/
Completion you say?
user@computer:$ cd /u/li/zs<TAB> completes /usr/lib/zsh
Somehow bookmarks:
user@computer:$ hash -d zsh="/usr/lib/zsh"
user@computer:$ cd ~zsh
user@computer:$ pwd
/usr/lib/zsh
Oh no, I can’t tell more. zcalc, zmv, zftp aaarrrggh.. I love them but there are too much.
Here is a detailed text about zsh capabilities. You know what?

July 13th, 2011 in
seqizz |
No Comments
Pure boredom. I edited Suse.Logo.Green KDM4, Ksplash4 and powered_by_gentoo bootsplash themes. Main concept is this:

Also the links:
KDM: http://goo.gl/7C8bB
Ksplash: http://goo.gl/dyF0T
Bootsplash: http://goo.gl/JdCXJ
March 1st, 2011 in
seqizz |
2 Comments
I’ve accidentally discovered this in kernel:

compcache [link] creates block devices like /dev/zram0, acting like a swap device. But it’s using RAM actually, compressed. I can feel the difference on my 1gb-ram netbook a little.
It’s not a new project, I don’t know how did I miss this.
Setting up a “ramswap” is pretty easy. Here is my /etc/conf.d/local:
local_start() {
modprobe zram num_devices=2
echo 67108864 > /sys/block/zram0/disksize
echo 67108864 > /sys/block/zram1/disksize
mkswap /dev/zram0
mkswap /dev/zram1
swapon /dev/zram0
swapon /dev/zram1
return 0
}
local_stop() {
swapoff /dev/zram0
swapoff /dev/zram1
echo 1 > /sys/block/zram0/reset
echo 1 > /sys/block/zram1/reset
return 0
}
I guess you got the message  ;)
#EDIT: conf.d/local, sorry for mistake
February 27th, 2011 in
seqizz |
No Comments
Meh. Here is the 64Bit .config file for 2.6.37 kernel (for ck-sources, you can use with gentoo-sources too). Don’t forget to configure. E.g. I’m not using usb-based wireless cards, nor printer, so didn’t enable it.
Most problematic hardware is RaLink RT3090 Wireless, which still has a staging driver. I’m using this as module (rt2870sta), don’t forget the firmware, if it goes crazy about connecting just reload the module.
Only non-working thing is Fn-F5 and F6 (setting screen brightness with keyboard), however i’m good with software, you can use battery applets (e.g. in kde or gnome).
Download Config File
January 31st, 2011 in
seqizz |
2 Comments