quadkonsole – multiple consoles to make your life easier

First lets install quadkonsole:

yum install quadkonsole

Now, to launch the quadkonsole, just type quadkonsole in the run box (appears with Alt+F2).

You will by default see 4 console windows in single window but you can change that with command line options like so:

quadkonsole --rows 4 --columns 4

This will initiate windows with 16 consoles. How cool is that.

Enhanced by Zemanta

bash script to change the vim colorscheme from the list of locally available schemes

\"MacVim
Image via Wikipedia

Today I was just wondering how good it would be to have a script to change the vim colorscheme from the command prompt. The plan for the script was simply to print the list of available schemes and then let the user select the actions from there on. So, here is the result:

#!/bin/bash –
#===============================================================================
#
#          FILE:  change_vim_colorscheme.sh
#
#         USAGE:  ./change_vim_colorscheme.sh
#
#   DESCRIPTION: Change the vim colorscheme from command prompt
#
#       OPTIONS:  —
#  REQUIREMENTS:  —
#          BUGS:  —
#         NOTES:  —
#        AUTHOR:  Amit Agarwal (AKA), [email protected]
#       COMPANY:  Individual
#       VERSION:  1.0
#       CREATED:  02/02/2010 10:30:07 PM IST
#      REVISION:  —
#===============================================================================

cd ~/.vim/colors
for i in *.vim
do
echo \”${i%.vim}\”
done

read -p \”Enter one of the colorschemes :: \” choice
file=~/.vim/colors/$choice.vim
if [ ! -f $file ]
then
echo \”Colorscheme file \”$file\” does not exist\”
exit -1
fi

sed \’s#\\(^ *colorscheme\\).*#\\1 \’$choice\’#\’ ~/.vimrc > /tmp/vimrc
diff ~/.vimrc /tmp/vimrc
read -p \”Do you want to make the changes (y/n) :: \” yn
if [ $yn = \”y\” ]
then
echo {/tmp/,~/.}vimrc
cp {/tmp/,~/.}vimrc
else
echo \”Modified changes are available in /tmp/vimrc\”
fi

\"Reblog