diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-28 16:16:17 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-28 16:16:17 -0400 |
commit | bff2ac56b6c5cc969a5219c5a5bf608439436983 (patch) | |
tree | f4c6f7ced6e2c23e6a295dcacc394dc1f46f9c32 /dot | |
parent | 5000b07658ac3dd7bc12b7f3ea634aa79b0474a6 (diff) |
new function install_spacemacs()
Diffstat (limited to 'dot')
-rw-r--r-- | dot/bashrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -405,6 +405,14 @@ newfile() | |||
405 | find . -maxdepth 1 -type f -printf "%T@ %f\0" | sort -z -k1,1 -r | head -z -n1 | cut -d' ' -f2 | xargs -0 printf %s | 405 | find . -maxdepth 1 -type f -printf "%T@ %f\0" | sort -z -k1,1 -r | head -z -n1 | cut -d' ' -f2 | xargs -0 printf %s |
406 | } | 406 | } |
407 | 407 | ||
408 | install_spacemacs() | ||
409 | { | ||
410 | if [ -d "$HOME/.emacs.d" ] | ||
411 | then return | ||
412 | else git clone --depth=1 https://github.com/syl20bnr/spacemacs ~/.emacs.d | ||
413 | fi | ||
414 | } | ||
415 | |||
408 | local_bashrc=~/.bashrc.$(hostname) | 416 | local_bashrc=~/.bashrc.$(hostname) |
409 | 417 | ||
410 | if [ -f "$local_bashrc" ]; then | 418 | if [ -f "$local_bashrc" ]; then |