Skip to content
Newer
Older
100644 24 lines (22 sloc) 749 Bytes
9e7c3eb Fix profile_push. Add docs.
Mat Schaffer authored
1 # Pushes a non-git version of .profile.d to the specified server.
2 # Usage: profile_push <server>
3 #
4 # WARNING: this will remove any existing .profile.d, .profile or .bashrc on that server.
a555500 Moved profile (and dotfile) management functions into profile.conf.
Mat Schaffer authored
5 profile_push() {
6 tar cf - --exclude=".git" --exclude="repository" -C "${HOME}" .profile.d | \
7 ssh $1 "rm -rf .profile.d .profile .bashrc;
8 mkdir .profile.d;
9 tar xf -;
9e7c3eb Fix profile_push. Add docs.
Mat Schaffer authored
10 ln -s .profile.d/core/init .profile"
a555500 Moved profile (and dotfile) management functions into profile.conf.
Mat Schaffer authored
11 }
12
9e7c3eb Fix profile_push. Add docs.
Mat Schaffer authored
13 # Should link up dotfiles to your home directory.
14 #
15 # WARNING: Not working correctly at the moment
a555500 Moved profile (and dotfile) management functions into profile.conf.
Mat Schaffer authored
16 link_dotfiles() {
17 local dotfile path
18 for dotfile in "${PROFILE_PATH}"/dotfiles/*; do
19 path="${HOME}/.`basename ${dotfile}`"
20 [ -e "${path}" ] && rm -ri "${path}"
21 ln -s "${dotfile}" "${path}"
22 done
23 }
Something went wrong with that request. Please try again.