Files
q-tools/README.md
2017-12-18 12:19:43 +00:00

60 lines
1.3 KiB
Markdown

# Shell Tools package
```
_____ ___
|_ _/ _ \
| || (_) |
|_| \__\_\
```
This is a growing selection of shell tools used by me and my colleagues.
Each tool is an individual program, which do often depend on other tools.
Dependencies are best found by running the programs.
To see the help page of each tool, run the ./README script
# Installation
## Dependencies
Many of the tools use common unix tools. Some extra tools are required. Here are
the installation commands.
```
sudo apt-get install mercurial sqlite3 python python-magic python-pip python-gtk2 sc \
gnuplot wget vim rsync curl pv
pip install csvkit ncsv
```
## Installation without repository
```
mkdir tools
curl https://bitbucket.org/MoonQ/tools/get/tip.tar.gz | tar xz --strip 1 -C tools
cd tools && source rc
```
Add the `rc` source in your ~/.bashrc
## Installation in user home
```
mkdir -p ~/lib
hg clone https://bitbucket.org/MoonQ/tools ~/lib/tools
. $HOME/lib/tools/rc
```
It is best to add the last line in your ~/.bashrc
## Systemwide installation
```
hg clone https://bitbucket.org/MoonQ/tools /usr/local/share/q-tools
echo '[ -e /usr/local/share/q-tools/rc ] && . /usr/local/share/q-tools/rc' >> /etc/profile.d/q-tools.sh
ln -s /usr/local/share/q-tools/rc /etc/cron.weekly/q-tools
```
The last step ensures weekly updates