-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·32 lines (31 loc) · 989 Bytes
/
install
File metadata and controls
executable file
·32 lines (31 loc) · 989 Bytes
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
#!/bin/sh
if [ $(uname) == 'FreeBSD' ]; then
#echo detected FreeBSD
if [ $(uname -a|grep -c 8.3-RELEASE) -eq 1 ]; then
echo detected FreeBSD 8.3-RELEASE
pkg=vim-lite-7.3.480.tbz
if [ $(pkg_info|grep -c vim-lite) -eq 1 ]; then
echo vim-lite already installed
else
echo fetching vim-lite package $pkg to $HOME/
curl -L http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/amd64/packages-8.3-release/All/vim-lite-7.3.480.tbz > $HOME/$pkg
#pkg_add $HOME/$pkg
#echo $?
#rm $HOME/$pkg
fi
elif [ $(uname -a|grep -c 10.1-RELEASE) -eq 1 ]; then
echo detected FreeBSD 10.1-RELEASE
if [ $(pkg info|grep -c vim-lite) -eq 1 ]; then
echo vim-lite already installed
else
echo vim-lite not installed
fi
else
echo unhandled version of FreeBSD .. aborting
exit
fi
fi
uri=https://raw.githubusercontent.com/bmeadors/env/master
curl -L $uri/.aliases > $HOME/.aliases
curl -L $uri/tmux/.tmux.conf > $HOME/.tmux.conf
curl -L $uri/vim/.vimrc > $HOME/.vimrc