Doskey LINUX para o SQLPLUS

Quem nao se lembra do doskey... hoje é so voltar a setinha do teclado para cima e o ultimo comando se repete.. No linux isso tambem é possivel.

Instale o rlwrap. E facil. Descompacte,
gunzip NOMEARQUIVO.gz e tar -xvf NOMEARQUIVO.gz ou tar -xvfg NOMEARQUIVO.gz

Em seguida como root:
cd rlwrap-0.33
./configure
make
make install

Depois va ate a pasta:
cd /etc/profile.d/
crie o arquivo sqlplus.sh com o conteudo:


alias sqlplus='rlwrap sqlplus'


Sobre o RLWRAP pode ser baixado do link abaixo:

rlwrap is a 'readline wrapper' that uses the GNU readline library to allow the editing of keyboard input for any other command. Input history is remembered across invocations, separately for each command; history completion and search work as in bash and completion word lists can be specified on the command line.

http://utopia.knoware.nl/%7Ehlub/uck/rlwrap/

Pode ser baixado pelo link:
http://utopia.knoware.nl/%7Ehlub/uck/rlwrap/rlwrap-0.33.tar.gz

Comentários