mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add install private dotfiles helpers
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ Icon*
|
|||||||
.dropbox
|
.dropbox
|
||||||
bin/boot2docker.iso
|
bin/boot2docker.iso
|
||||||
bundle/cache/*
|
bundle/cache/*
|
||||||
|
private/*
|
||||||
|
|||||||
@@ -54,6 +54,11 @@ install_symlinks () {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_private () {
|
||||||
|
git_clone "git@github.com:jimeh/dotfiles-private.git" \
|
||||||
|
"$ROOT_PATH/$PRIVATE_PATH"
|
||||||
|
}
|
||||||
|
|
||||||
install_launch_agents () {
|
install_launch_agents () {
|
||||||
mkdir -p "$HOME/Library/LaunchAgents"
|
mkdir -p "$HOME/Library/LaunchAgents"
|
||||||
for file in $ROOT_PATH/launch_agents/*.plist; do
|
for file in $ROOT_PATH/launch_agents/*.plist; do
|
||||||
@@ -136,6 +141,9 @@ case "$1" in
|
|||||||
symlinks|links)
|
symlinks|links)
|
||||||
install_symlinks
|
install_symlinks
|
||||||
;;
|
;;
|
||||||
|
private)
|
||||||
|
install_private
|
||||||
|
;;
|
||||||
homebrew|brew)
|
homebrew|brew)
|
||||||
install_homebrew
|
install_homebrew
|
||||||
;;
|
;;
|
||||||
@@ -168,6 +176,7 @@ case "$1" in
|
|||||||
echo ' info: Target and source directory info.'
|
echo ' info: Target and source directory info.'
|
||||||
echo ' symlinks: Install symlinks for various dotfiles into' \
|
echo ' symlinks: Install symlinks for various dotfiles into' \
|
||||||
'target directory.'
|
'target directory.'
|
||||||
|
echo ' private: Install private dotfiles.'
|
||||||
echo ' homebrew: Install Homebrew (Mac OS X only).'
|
echo ' homebrew: Install Homebrew (Mac OS X only).'
|
||||||
echo ' rbenv: Install rbenv, a Ruby version manager.'
|
echo ' rbenv: Install rbenv, a Ruby version manager.'
|
||||||
echo ' nvm: Install nvm, a Node.js version manager.'
|
echo ' nvm: Install nvm, a Node.js version manager.'
|
||||||
|
|||||||
Reference in New Issue
Block a user