-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpair
57 lines (45 loc) · 1.56 KB
/
pair
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
#!/bin/bash
#
#
# curl https://olivierodo.me/pair | bash -
#
#
CURRENT_USER=$(whoami)
echo $CURRENT_USER
## Packages
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
jq \
git \
tmux \
nodejs \
npm
curl -L https://github.com/owenthereal/upterm/releases/download/v0.6.5/upterm_linux_amd64.tar.gz -o upterm.tar.gz
mkdir ./upterm
tar -xvf upterm.tar.gz -C upterm
cp upterm/upterm /usr/local/bin
curl -L https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz -o gotty.tar.gz
mkdir ./gotty
tar -xvf gotty.tar.gz -C gotty
cp gotty/gotty /usr/local/bin
curl -L https://olivierodo.me/.gotty -o .gotty
## Custom config
git clone https://github.com/olivierodo/dotfiles.git
sudo su -s /bin/bash -c 'cd ./dotfiles && exec ./install.sh' $CURRENT_USER
echo "[user]" >> .gitconfig.local
echo " name = Pair Buddy" >> .gitconfig.local
echo " email = pair@olivierodo.me" >> .gitconfig.local
echo "alias pair=\"upterm host -- bash\"" >> .bash_aliases
echo "alias stream=\"nohup gotty tmux new -A -s pair &\"" >> .bash_aliases
echo "==================================================================="
echo "SUCCESSFULL INSTALLATION !!!"
echo "==================================================================="
echo "==================================================================="
echo "==================================================================="
echo "Please exit and log yourself again"
echo "==================================================================="