added initDesktop

This commit is contained in:
Jonas Forsberg 2020-08-01 13:45:28 +02:00
parent 3eaf6ebbef
commit 92b7931caa
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -12,11 +12,11 @@ set -aeo pipefail
function new_log(){ function new_log(){
# script output # script output
echo "\n**** [$*] ***" printf "\n**** [$*] ***\n"
} }
function log(){ function log(){
echo "$*" printf "$*\n"
} }
function gnome_key_bindings(){ function gnome_key_bindings(){
@ -42,7 +42,7 @@ function setup_dotfiles(){
log "adding remote repo ($DOTFILES_REMOTE)" log "adding remote repo ($DOTFILES_REMOTE)"
$dotf remote add origin "$DOTFILES_REMOTE" $dotf remote add origin "$DOTFILES_REMOTE"
if [[ -f "$HOME/.bachrc" ]];then if [[ -f "$HOME/.bashrc" ]];then
log "renaming local .bashrc to .bashrc.bak" log "renaming local .bashrc to .bashrc.bak"
mv "$HOME/.bashrc" "$HOME/.bashrc.bak" mv "$HOME/.bashrc" "$HOME/.bashrc.bak"
fi fi