Skip to content
This repository
tree: 69d5e0cf2d
Fetching contributors…

Cannot retrieve contributors at this time

file 91 lines (51 sloc) 2.378 kb

Crunchbang User Repository

The CUR is a collection of user scripts contributed by the Crunchbang Linux community (http://crunchbanglinux.org)

The supplied Python / Curses CLI application (cur) allows you to browse, install and remove these scripts.

Command line options are also supported:

usage: cur [-h] [-v] [-i] [-r] name [name ...]

positional arguments:
  name           scripts to select

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  print version info
  -i, --install  install
  -r, --remove   remove

Requirements and Installation

  • git
  • python 2.6+
  • python-urwid

All available in your distro repos, for apt-based package managers, for example:

sudo apt-get install git python-urwid

We place CUR in ~/src/cur. Feel free to change this accordingly in these steps.

Make sure the ~/src directory exists:

mkdir ~/src

Clone the source:

git clone git@github.com:wesleywerner/cur.git ~/src/cur

Link the executable so you can run it from anywhere:

ln -s /home/$USER/src/cur/cur /home/$USER/bin/

Examples

  • install foo, bar and baz:

    cur -i foo bar baz

  • remove bar

    cur -r bar

  • toggle all three again

    cur foo bar baz

    (install bar, and remove foo and baz)

Config

Scripts that you "install" are, in reality, symlinked into ~/bin/ so they are found in your user path. You may change this location in ~/.currc:

[DEFAULT]
user_path=~/bin

Updating scripts

The CUR uses github to update itself and the included user scripts via the "git pull" command. You may issue this by hand, or use the [u]pdate action, or the -u, --update command line actions. They all do the same.

License

Copyright 2012 Wesley Werner

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Something went wrong with that request. Please try again.