From 69ee005bcc554740bfd96f0d029480922a68b532 Mon Sep 17 00:00:00 2001 From: Von Random Date: Sun, 19 Oct 2014 18:12:22 +0400 Subject: [PATCH] implement function to update dotfiles --- shellrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shellrc b/shellrc index 454078e..131c6a4 100644 --- a/shellrc +++ b/shellrc @@ -19,6 +19,9 @@ unset local_bin # ---> completion comp_enabled=true +# ---> dotfiles dir +dotfiles="${HOME}/vdotfiles" + # ---> environment export TIME_STYLE='long-iso' export LC_ALL='en_US.UTF-8' @@ -194,8 +197,12 @@ screenoffenable() { xset +dpms xset s on } +dotfiles_update() { + git --work-tree="${dotfiles}" --git-dir="${dotfiles}/.git" pull + return 0 +} # enable autoload feature for zsh -is_zsh && autoload screenoffdisable screenoffenable +is_zsh && autoload screenoffdisable screenoffenable dotfiles_update # ---> other shell specific settings and sourcing of external files if is_zsh; then