Permalink
Browse files

Added the ability to 'src' individual files

  • Loading branch information...
1 parent 391a92a commit 8499ca95ef93852f0566719032d6888f9b2b8e28 @cowboy committed Dec 26, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 link/.bashrc
View
@@ -5,9 +5,13 @@ export PATH
# Source all files in ~/.dotfiles/source/
function src() {
local file
- for file in ~/.dotfiles/source/*; do
- source "$file"
- done
+ if [[ "$1" ]]; then
+ source "$HOME/.dotfiles/source/$1.sh"
+ else
+ for file in ~/.dotfiles/source/*; do
+ source "$file"
+ done
+ fi
}
# Run dotfiles script, then source.

0 comments on commit 8499ca9

Please sign in to comment.