blob: 1e854986348fc1ffab298110eafa87f92ed2820d (
plain)
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
|
# cd .config/
# git clone https://git.wit.org/wit/bash.git wit/
# git clone https://git.wit.org/wit/bash.git ~/.config/wit/ && cd ~/.config/wit && make new-install
# git clone https://git.wit.org/wit/bash.git ~/.config/wit/
# cd ~/.config/wit/
# git config pull.rebase false
# make new-install
all:
@echo
@echo is this a new install?
@echo if so, run:
@echo
@echo 'make new-install'
@echo
new-install:
git config pull.rebase false
git pull
make setup-bash
make setup-vim
ifeq ($(USER),root)
make setup-apt
make go
else
echo you are not root so you can not install packages
endif
setup-bash:
ifeq ($(WIT_BASH),true)
echo WIT_BASH is already set WIT_USER=${WIT_USER}
false
else
echo WIT_BASH is not set WIT_USER=${WIT_USER}
cat bashrc/.bashrc >> ~/.bashrc
endif
git:
git clone https://cgit.grid.wit.com/wit.git ~/.config/wit/
git config pull.rebase false
pull:
cd ~/.config/wit/
git pull
vimrc:
cd ~/.config && ln -sf wit/vimrc .
dist-upgrade:
apt dist-upgrade
apt autoremove
service ssh start
setup-date:
@# you need this if your hardware clock is fucked up
@# I need to check to see if the clock is before this date, if so, then it's not working
wget --method=HEAD -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f 4-9
date -s '2023-02-21 11:31:30'
push:
git add --all
-git commit -a
git push
|