1
0
Fork 0

implement function to update dotfiles

This commit is contained in:
Von Random 2014-10-19 18:12:22 +04:00
parent 010c9d5f1a
commit 69ee005bcc

View file

@ -19,6 +19,9 @@ unset local_bin
# ---> completion # ---> completion
comp_enabled=true comp_enabled=true
# ---> dotfiles dir
dotfiles="${HOME}/vdotfiles"
# ---> environment # ---> environment
export TIME_STYLE='long-iso' export TIME_STYLE='long-iso'
export LC_ALL='en_US.UTF-8' export LC_ALL='en_US.UTF-8'
@ -194,8 +197,12 @@ screenoffenable() {
xset +dpms xset +dpms
xset s on xset s on
} }
dotfiles_update() {
git --work-tree="${dotfiles}" --git-dir="${dotfiles}/.git" pull
return 0
}
# enable autoload feature for zsh # 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 # ---> other shell specific settings and sourcing of external files
if is_zsh; then if is_zsh; then