From bff2ac56b6c5cc969a5219c5a5bf608439436983 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 28 May 2020 16:16:17 -0400 Subject: new function install_spacemacs() --- dot/bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dot') diff --git a/dot/bashrc b/dot/bashrc index bef8fc6..2e4ed5d 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -405,6 +405,14 @@ newfile() find . -maxdepth 1 -type f -printf "%T@ %f\0" | sort -z -k1,1 -r | head -z -n1 | cut -d' ' -f2 | xargs -0 printf %s } +install_spacemacs() +{ + if [ -d "$HOME/.emacs.d" ] + then return + else git clone --depth=1 https://github.com/syl20bnr/spacemacs ~/.emacs.d + fi +} + local_bashrc=~/.bashrc.$(hostname) if [ -f "$local_bashrc" ]; then -- cgit v1.2.3