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:
parent
2d305c5584
commit
5fcab3c825
|
@ -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 \;
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CONFIG_DIR=$(dirname $0)
|
||||
|
||||
cd $CONFIG_DIR
|
||||
|
||||
/usr/bin/env bash linux_setup.bash
|
38
setup.fish
38
setup.fish
|
@ -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
|
Loading…
Reference in New Issue