Browse Source

Added helper copy script

master
Macoy Madson 2 months ago
parent
commit
4f13584e24
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      Emacs/install.sh

+ 15
- 0
Emacs/install.sh View File

@@ -0,0 +1,15 @@
#!/bin/sh
echo -n "Overwrite ~/.emacs (do NOT do if you've already got one) (y/n)? "
read answer

# if echo "$answer" | grep -iq "^y" ;then

if [ "$answer" != "${answer#[Yy]}" ] ;then
echo Yes
cp dotEmacs.el ~/.emacs
else
echo No
fi

echo ';;' >> ~/.emacs-this-machine-only.el
emacs

Loading…
Cancel
Save