cleaned up setup scripts to use names based on operating system

deleted fish setup script since its features are duplicated in bash setup
This commit is contained in:
a. fox 2023-07-27 11:09:19 -04:00
parent 2d305c5584
commit 5fcab3c825
4 changed files with 11 additions and 41 deletions

View File

@ -18,9 +18,10 @@ emacs --script "tangle-bootstrap.el"
echo "Making link..."
ln -sf $(pwd)/bootstrap.el ~/.emacs
echo "Installing git hooks..."
cp hooks/* .git/hooks/
chmod +x .git/hooks/*
## Commenting this out for now
#echo "Installing git hooks..."
#cp hooks/* .git/hooks/
#chmod +x .git/hooks/*
echo "Installing fonts..."
find -E fonts -type f -regex ".*\.(otf|ttf)" -exec cp \{\} $font_dir \;

7
macos_setup.command Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
CONFIG_DIR=$(dirname $0)
cd $CONFIG_DIR
/usr/bin/env bash linux_setup.bash

View File

@ -1,38 +0,0 @@
#!/bin/env fish
set -l font_dir "~/.fonts"
if string match -q "Darwin" (uname)
set font_dir "~/Library/Fonts/"
end
if not test -d $font_dir
mkdir $font_dir
end
if test -f ~/.emacs
mv ~/.emacs ~/.emacs.bak
end
if test -d ~/.emacs.d
mv ~/.emacs.d ~/.emacs.d.bak
end
echo "Creating bootstrap init file..."
emacs --script "tangle-bootstrap.el"
echo "Making link..."
ln -sf (pwd)/bootstrap.el ~/.emacs
echo "Installing git hooks..."
cp hooks/* .git/hooks/
chmod +x .git/hooks/*
echo "Installing fonts..."
find -E fonts -type f -regex ".*\.(otf|ttf)" -exec cp \{\} $font_dir \;
if not string match -q (which fc-cache)
fc-cache -v
end
echo "Touching local.el file..."
touch local.el