Compare commits

..

No commits in common. "006aa36b1ce6fcbaad605420459d3cfb82bfe68a" and "967ffe1310479eb09b47e8e7362f8cf6805d5b6f" have entirely different histories.

3 changed files with 25 additions and 3 deletions

View File

@ -38,5 +38,4 @@ Included within are also a handful of management scripts.
| script | description |
| --- | --- |
| `deploy-all.sh` | Deploys all packages. Note that I reserve the right to produce packages with conflicting contents, so in the future this may be refined to only deploy a specific subset of packages (base, vim, etc.). |
| `submodule-checkout-masters-and-update.sh` | For every submodule in the repo, checks out its master branch (instead of the exact commit specified in the base repo) and then pulls from upstream. Effectively, this updates any submodules in the repo, such as Vim plugins, themes, etc. |

View File

@ -267,6 +267,31 @@ if has vault; then
alias vr="vault read"
fi
# Dotfile management aliases
if [ -d "$HOME/.dotfiles" ]; then
dotcmd='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias dot="$dotcmd"
if [ -f "/usr/share/bash-completion/completions/git" ] && [ "$_baseshell" == "bash" ]; then
. "/usr/share/bash-completion/completions/git"
__git_complete dot _git
fi
alias dotupdate="\
printf 'Pulling...\n'
$dotcmd pull
printf 'Updating submodules...\n'
$dotcmd submodule update --init --recursive --remote
$dotcmd status"
alias dotupgrade="\
printf 'Pulling...\n'
$dotcmd pull
printf 'Updating submodules...\n'
$dotcmd submodule update --init
printf 'Checking out masters...\n'
$dotcmd submodule -q foreach --recursive 'git checkout -q master && git pull' && \
$dotcmd status"
unset dotcmd
fi
# Aliases for common utilities
if [ "$(uname)" = "Linux" ] || has brew; then
# Assume we have GNU coreutils

View File

@ -1,2 +0,0 @@
#! /bin/sh
for file in *; do [ -d "$file" ] && stow "$file" --target="$HOME"; done