Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
My shell profile
Perl VimL Ruby
branch: master

This branch is 1 commit ahead, 33 commits behind matschaffer:master

moved all of the confs to a dir not in the load path;

add a symlink step in the install that will symlink into the load path
this is useful if you want to disable a certain conf, rm the symlink
latest commit 5e7b1cd4f9
@snatchev authored
Failed to load latest commit information.
Darwin Add accurev helper files
Linux Only source /etc/profile.d stuff if it exists
SunOS Updated my email address for .forward files.
available
bin Adding some server runners
dotfiles
.gitignore Added *.swp to gitignore for vim users.
LICENSE Added note about license.
README.md Switched installation for https.
init
install

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://github.com/matschaffer/profile/raw/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.