Last active
October 10, 2017 04:58
-
-
Save davepagurek/f0a1a5e2a9371b62cd6f716bbe47f870 to your computer and use it in GitHub Desktop.
Add arrow keys to db2. Run `db2c`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# install rlwrap | |
cd ~ | |
git clone https://github.com/hanslub42/rlwrap.git | |
cd rlwrap | |
autoreconf --install | |
./configure --prefix=$HOME | |
make | |
make install | |
# add bash shortcuts | |
echo 'export PATH="$PATH:~/bin"' >> ~/.bashrc | |
echo 'alias db2c="rlwrap db2"' >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Might have to use
~/.profile
insteadAlso:
alias db2c='source ~db2inst2/sqllib/db2profile && rlwrap db2'
so you don't have tosource
everytime