implement function to update dotfiles
This commit is contained in:
parent
010c9d5f1a
commit
69ee005bcc
1 changed files with 8 additions and 1 deletions
9
shellrc
9
shellrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue