Compare commits

...

2 Commits

Author SHA1 Message Date
006aa36b1c Remove "dot" alias
Kinda don't need that anymore
2021-01-19 02:19:47 -06:00
f371c43557 Add a deploy-all script 2021-01-19 02:19:05 -06:00
3 changed files with 3 additions and 25 deletions

View File

@ -38,4 +38,5 @@ 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,31 +267,6 @@ 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

2
deploy-all.sh Executable file
View File

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