.
This commit is contained in:
parent
3f4aeda4ad
commit
3eaf6ebbef
@ -12,11 +12,11 @@ set -aeo pipefail
|
||||
|
||||
function new_log(){
|
||||
# script output
|
||||
printf "[*] - $*\n"
|
||||
echo "\n**** [$*] ***"
|
||||
}
|
||||
|
||||
function log(){
|
||||
printf " $*\n"
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
function gnome_key_bindings(){
|
||||
@ -41,16 +41,15 @@ function setup_dotfiles(){
|
||||
|
||||
log "adding remote repo ($DOTFILES_REMOTE)"
|
||||
$dotf remote add origin "$DOTFILES_REMOTE"
|
||||
$dotf branch --set-upstream-to=origin/master master
|
||||
$dotf pull.ff only
|
||||
|
||||
if [[ -f "$HOME/.bachrc" ]];then
|
||||
log "renaming local .bashrc to .bashrc.bak"
|
||||
mv "$HOME/.bashrc" "$HOME/.bashrc.bak"
|
||||
fi
|
||||
|
||||
log "pulling dotfiles"
|
||||
$dotf pull
|
||||
log "fetching dotfiles"
|
||||
$dotf fetch origin
|
||||
$dotf checkout master
|
||||
}
|
||||
|
||||
setup_dotfiles
|
||||
|
Loading…
Reference in New Issue
Block a user