Sunday, September 9, 2012

Handling archives in linux (ranger file manager)

Today I was looking for a some plugin for unpacking files in Ranger file manager. I found great tool ( atool :) ). It is nice and simple command for packing and unpacking many types of archives.

First install atool, in ubuntu you do it with apt-get:
sudo apt-get install atool


Now update your rc.conf in ranger (after default instalation you need to copy-config from default skeleton. ranger --copy-config all). Now edit your bindings in ~/.config/ranger/rc.conf

map Pu shell atool -x %s
map Pa shell atool -a %s

Now after pressing Pu/Pa archive is unpacked or directory/file is packed.