summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@cletus>2021-03-12 00:45:51 -0500
committerAndrew Cady <d@jerkface.net>2021-08-14 19:36:08 -0400
commitfc9d27145f69a469a516a4e2a98667a4c2f4869e (patch)
tree631ac54fe45a7963de81a82d2746cc731b9e4c7c
parent240ae4da2bbaac45ad0394debdf85b04830e93f5 (diff)
bashrc: get_spacemacs is more robust
-rw-r--r--dot/bashrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/dot/bashrc b/dot/bashrc
index b7e8af3..041b876 100644
--- a/dot/bashrc
+++ b/dot/bashrc
@@ -411,9 +411,10 @@ newfile()
411get_spacemacs() 411get_spacemacs()
412{ 412{
413 if [ -d "$HOME/.emacs.d" ] 413 if [ -d "$HOME/.emacs.d" ]
414 then return 414 then
415 else git clone --depth=1 https://github.com/syl20bnr/spacemacs ~/.emacs.d 415 rmdir "$HOME/.emacs.d" || return
416 fi 416 fi
417 git clone --depth=1 https://github.com/syl20bnr/spacemacs ~/.emacs.d
417} 418}
418 419
419get_youtube-dl() 420get_youtube-dl()