Skip to content

Ruy’s Ninja-Pack of Cool Shell Tools For Attractive People

Notifications You must be signed in to change notification settings

clarabstract/ninjapack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruy’s Ninja-Pack of Cool Shell Tools For Attractive People

This is a collection of random crap I am tired of setting up every time I get a new shell. It assumes a preference for the following tools:

  • ZSH
  • git
  • nano (if you’re a fancy vim/emacs person why do you need a shell anyway?)
  • SSH with key logins

It also assumes you like colors.

Usage

Initial Install

You only have to do this the first time:

git clone [email protected]:rubyruy/ninjapack.git ~/.ninja

Then install (this updates various .files in your home directory):

.ninja/bin/ninstall

If you haven’t changed your shell yet, now is a good time to run chsh. If you’re already using zsh, source .zshrc

Subsequent hosts

Rather then repeat the above steps for additional hosts you wish to connect to, you can use the provided command npush. It takes a hostname, optionally with username, same as the ssh command. e.g.

You will be asked to type in your SSH password.

This is what cool shit is about to happen:

  • Your current id_rsa.pub is added to the hosts’s authroized_keys (for SSH key login)
  • The current checkout of ninjapack is copied over to the new host (this means if you’re using a forked copy, the new host can be updated from your remote rather then mine)
  • ninstall is ran as above

Happy days!

Forking and Updating

You are very encouraged to use a fork rather then source. At the very least you will want to change your default .ninja/gitconfig.conf user and email to thine own self. (would be nice if this wasn’t required though…)

If you want to update a host from upstream (be it mine or your fork) simply git pull using the usual methods and then re-run ninstall.

Known broken shit

  • zsh 4.3.9 (i think) or higher is require and will silently fail otherwise as it lacks smart handling of PROMPT colors.

Short term future wishlist

  • SVN support, grumble grumble
  • Better completions for manage.py (that don’t rely on hard-coding known switches if possible)

PuTTY-specific config reminders

Connection -> Data -> Terminal-type string: change to xterm-256color

Running rmate/rsub (package control: install rsub)?

Connection -> SSH -> Tunnels: Add new forwarded port

  • Source port: 52698
  • Destination: 127.0.0.1:52698
  • Remote, Auto
  • Remember to hit Add

About

Ruy’s Ninja-Pack of Cool Shell Tools For Attractive People

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages