Skip to content

codeslinger/profile

This branch is 68 commits ahead of, 211 commits behind kyleburton/profile:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Toby DiPasquale
Aug 17, 2014
922fd41 · Aug 17, 2014
Aug 17, 2014
Jan 19, 2012
Jun 26, 2012
Apr 24, 2010
Aug 17, 2014
Jun 26, 2012
Jul 25, 2013
Jun 26, 2012
Jun 26, 2012
Jun 26, 2012
Apr 24, 2010
Jun 26, 2012
Sep 3, 2009
Jul 25, 2013
Jul 25, 2013
Aug 17, 2014
Jun 26, 2012
Oct 12, 2009
Jul 1, 2012
Mar 12, 2014
Jun 26, 2012
Jun 26, 2012
Mar 14, 2010
Aug 27, 2010

Repository files navigation

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

Usage

# Go home
cd ~

# Clone mine or your own fork
git clone git://github.com/codeslinger/profile.git .profile.d

# All *.conf files are loaded alphabetically, so this will retain your original settings
mv .profile .profile.d/z_myoldsettings.conf

# .profile.d/init kicks off the whole thing
ln -s .profile.d/init .profile

# Make sure you don't have any .bash_profile or .bashrc hanging out which might override .profile
# and reload your profile
source .profile

From here you can now put any .profile.d/*.conf file, or put it in a folder for your `uname` (Darwin, Linux, SunOS are already there). The load order is.

  1. .profile.d/init
  2. .profile.d/`uname`/init
  3. .profile.d/*.conf
  4. .profile.d/`uname`/*.conf

Features

  • 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
  • ‘link_dotfiles’ command that will create symlinks for all the files listed in the dotfiles directory
  • Auto setup of .foward file on Linux and Solaris

Planned features

  • Tab completion for ssh hosts in Solaris
  • Single-command for SSH key distribution and profile distribution

About

My shell profile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 49.8%
  • Ruby 17.8%
  • Perl 17.4%
  • Vim Script 14.5%
  • Python 0.5%