deric / bash-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collection of terminal aliases

A collection of the aliases, shortcuts and prompt customisations we use for Linux / Ruby / Rails / git projects

Installation

Clone in to your home directory

$ git clone git://github.com/deric/bash-scripts.git ~/.scripts && bash ~/.scripts/install

To apply changes immediately just source your .bashrc file

$ source ~/.bashrc

Some distributions might use .bash_profile instead of .bashrc, that would mean using following:

echo "source ~/.scripts/all.sh" >> ~/.bash_profile

Usage

Shell commands

$ l   (ls -aFhlG')
$ ..  (cd ..)
$ ... (cd ../..)
$ -   (cd - or change to previous directory)
$ nt  (new tab in current dir)
$ c   (clear)
$ p   (pwd)
$ m   (mate .)

ssh

$ sshf hostname  # (ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null) - won't save ssh keys into known_hosts, won't check fingerprint
$ scp hostname  # (scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null) - won't save ssh keys into known_hosts, won't check fingerprint
$ rsynf hostname # won't save ssh keys into known_hosts, won't check fingerprint

Git commands

$ gp  (git pull)
$ gu  (git push)
$ gpp (git pull && git push)

Rails commands

$ rt (rake test)
$ rtu (rake test:units)
$ rtf (rake test:functionals)
$ rti (rake test:integration)
$ cuke (cucumber)

Contributors

Dom Christie Joff Williams Simon Jamie Sam Oliver

(c) Pigment Released under the MIT license

About


Languages

Language:Shell 68.6%Language:Smarty 25.5%Language:Perl 5.9%