Compare commits
2 Commits
967ffe1310
...
006aa36b1c
Author | SHA1 | Date | |
---|---|---|---|
006aa36b1c | |||
f371c43557 |
@ -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. |
|
||||
|
@ -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
2
deploy-all.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#! /bin/sh
|
||||
for file in *; do [ -d "$file" ] && stow "$file" --target="$HOME"; done
|
Loading…
Reference in New Issue
Block a user