This project provides a set of defaults, configuration files and extensions for shell work.
See bashrc/README.markdown
.
See zshrc/README.markdown
.
There are configuration files for some common programs. To use them, link them with something like:
ln -s ~/shell/progrc ~/.progrc
where progrc is one of:
- inputrc
- ackrc
- screenrc
- tmux.conf (link to .tmux.conf instead)
- vimrc
- wgetrc
There are some executables in the scripts folder. The easiest way to
make them available is to link this folder to ~/bin
, with something
like:
ln -s ~/shell/scripts ~/bin
See ssh/README.markdown
.
See git/README.markdown
.
Very useful.
-
Mac OS X:
sudo port install p5-app-ack
-
Linux:
apt-get install ack-grep
The configuration file is automatically loaded.
Best option for ruby hacking. To install it, follow these steps exactly.
-
Download rvm by typing
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
-
Load it with
. ~/.rvm/scripts/rvm
(best put in the user configuration). -
Add completion with
ln -s ~/.rvm/scripts/completion ~/shell/bash/completion/rvm
-
Reload config
To install ruby itself, follow this exactly. This applies for version 1.9.2:
-
Install zlib, openssl, and readline with
rvm package install lib
, where lib is each of these libraries. Mac OS X might give some compilation error, but it doesn't seem to matter. -
Install ruby with
rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr --with-zlib-dir=$rvm_path/usr --with-readline-dir=$rvm_path/usr
. -
Mark the version with
rvm --default use 1.9.2
.
(To test if this worked, gem install bundler
. More info
).
It might happen that readline does not work. If irb gives a weird error, follow the instructions in this Stack Overflow post.)
An alternative to rvm, follow these steps:
-
Install readline:
- Linux: sudo apt-get install libreadline-dev
-
rbenv: Go to https://github.com/sstephenson/rbenv , follow the installation steps.
-
ruby-build: Go to https://github.com/sstephenson/ruby-build , follow the instructions to install it as a rbenv plugin.
Note that if you want to use irb, you have to install a ruby version with readline support. Do it like this:
CONFIGURE_OPTS="--with-readline-dir=/usr/include/readline" rbenv install 1.9.3-p194
Follow the instructions in irbrc/README.textile
.
Follow the instructions in mongorc/README.md
.
To use emacsclient properly, don't use the version that ships with
the OS. Link the good one with sudo ln -s /Applications/Emacs.app/Contents/MacOS/bin/emacsclient /usr/local/bin/emacsclient
.
Clone the repository with git clone git://github.com/sickill/stderred.git
and follow the instructions in
https://github.com/sickill/stderred