Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
My Bash profile
Perl VimL Ruby
branch: master
Failed to load latest commit information.
Darwin Avoid warning trying to detect EC2_HOME
Linux Remove auto-creation of mail profiles
SunOS Remove auto-creation of mail profiles
bin Adding some server runners
dotfiles Some new git tricks from http://oli.jp/2012/git-powerup/
git.conf Short (and awesome) status for ## master
java.conf Set up profile to work from ~/.profile.d/core and support .conf folde…
ruby.conf Use gcc-4.2 if we have it
svn.conf Commenting some of my utils.
.gitignore Added *.swp to gitignore for vim users.
LICENSE Added note about license.
README.md Updated install command to reflect github's new raw.github.com URL
accurev.conf Add accurev helper files
ack.conf Turn off ACK filetype filtering.
autojump.conf Update to autojump v19
autojump.vim.conf Autojump.vim
bin.conf
cdargs.conf Added cdargs configuration for cd bookmarking. More info available at h…
colors.conf Fix wrapping when using colors in PS1.
editors.conf Use EDITOR value for the `e` command.
environment.conf A better set_ps1 command
init Remove mistaken init modification
install Bomb installer if git isn't available
node.conf Homebrew-centric nodes path
npm.conf Oops, forgot how to do string interpolation in bash
profile.conf Fix profile_push. Add docs.
sbcl.conf Wrap sbcl in readline
ssh.conf Move ssh_key_upload into main ssh helper. Also docs.
tmux.conf Some helper functions for tmux
utils.conf Helper for human readible date strings.
web.conf Moved the "google" helper into web.conf

README.md

My Bash Profile

This is the profile that I'm now using across a number of machines that I administer. Most of the tricks I use are fairly general and could be reused by anyone.

What's it look like?

Feature Diagram

Installation

curl -s https://raw.github.com/matschaffer/profile/master/install | bash

From here you can now put any *.conf in ~/.profile.d and it'll get loaded in alphabetical order. You can also make directories that end in .conf which profile will then load all the .conf files in that directory in order.

Additionally, if you need to have OS-specific configuration just put a folder in .profile.d or .profile.d/core with the name returned by uname, for example .profile.d/Darwin. The profile checks uname when bash starts and loads any .conf files or directories in this OS-specific folder.

Load order

This profile loads init first, followed by all the .conf files in .profile.d/core, then any .conf files in .profile.d. This way you can put any general use configs in core and anything personal in .profile.d. If you want to keep your personal profile information in git, just set up core as a submodule to your personal repository.

Features

This list is not guaranteed to be comprehensive, but here are some of the major features included as of the last time this document was updated.

  • Reactive prompt - includes date and exit code of last command and git branch.
  • Tab Completion for Git and Subversion
  • Tab completion for Rake, Maven 2 and Ant
  • Tab completion for ssh hosts on OS X.
  • Git aliases
  • 'safeedit' function that makes a timestamped backup copy of a file before editing
  • Basic java set up on solaris and Darwin
  • Maven memory settings
  • 'profile_push' function for pushing these files out to other servers
  • Auto setup of .foward file on Linux and Solaris
  • Integration with CDArgs
  • Integration with Autojump
  • Integration with RVM

Planned features

  • 'link_dotfiles' command that will create symlinks for all the files listed in the dotfiles directory
  • Tab completion for ssh hosts in Solaris/Ubuntu
  • Single-command for SSH key distribution and profile distribution

Contributing

As noted in the LICENSE file. This is all MIT licensed code, so do what you will. But to make things easy for contributions please keep all stuff in core as generic as possible so others can merge it into their own forks. If you need any personal stuff (e.g., API Keys), keep that in a separate git repository that loads this repo as a submodule.

Something went wrong with that request. Please try again.