-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·75 lines (60 loc) · 1.29 KB
/
install
File metadata and controls
executable file
·75 lines (60 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
set -e
BASE=$(cd ${0%/*} && pwd)
echo ""
echo "REPOSITORIES"
echo "============"
echo ""
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
echo ""
echo "PACKAGES"
echo "========"
echo ""
sudo dnf install $(cat $BASE/packages)
curl -L https://nixos.org/nix/install | sh
echo ""
echo "SOURCE PACKAGES"
echo "==============="
echo ""
pushd $HOME
mkdir -p .local
pushd .local
if [ ! -e "distel" ]; then
git clone https://github.com/massemanet/distel.git
fi
pushd distel
git pull
make
popd # distel
if [ ! -e "distel-completion" ]; then
git clone https://github.com/sebastiw/distel-completion.git
else
pushd distel-completion
git pull
popd # distel-completion
fi
if [ ! -e "emacs-nav" ]; then
git clone https://github.com/ancane/emacs-nav.git
else
pushd emacs-nav
git pull
popd # emacs-nav
fi
popd # .local
popd # $HOME
echo ""
echo "CONFIGURATION"
echo "============="
echo ""
pushd $BASE
rm -f $HOME/.bashrc $HOME/.bash_profile
stow -S -v -t $HOME bash
stow -S -v -t $HOME emacs
stow -S -v -t $HOME git
stow -S -v -t $HOME screen
stow -S -v -t $HOME ut4
popd # $BASE
echo ""
echo "DONE!"
echo ""