From 75464de08e0b542e2224ddd1d47cba0ae08a4b13 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Mon, 28 Nov 2016 11:02:55 -0500 Subject: [PATCH] Add upgrade helper functions --- zshrc.d/lib/functions.zsh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/zshrc.d/lib/functions.zsh b/zshrc.d/lib/functions.zsh index e3a9321..a9c8c78 100644 --- a/zshrc.d/lib/functions.zsh +++ b/zshrc.d/lib/functions.zsh @@ -49,3 +49,17 @@ chef () { eval "$(chef shell-init zsh)" chef "$@" } + + +# Upgrade functions +update_spacemacs () { + cd ~/dotfiles + git subtree pull --prefix emacs.d --squash --message "Upgrade spacemacs" https://github.com/syl20bnr/spacemacs master + popd +} + +update_oh_my_zsh () { + cd ~/dotfiles + git subtree pull --prefix zshrc.d/oh-my-zsh --squash --message "Upgrade oh-my-zsh" https://github.com/robbyrussell/oh-my-zsh master + popd +}