-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-configs
executable file
·81 lines (63 loc) · 2.21 KB
/
update-configs
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
76
77
78
79
80
#!/bin/bash
set -e
BASE_URL="https://raw.githubusercontent.com/sobanieca/env-setup/master/"
echo "Updating update-configs tool"
wget $BASE_URL"update-configs" -O $HOME/tools/update-configs
chmod +x $HOME/tools/update-configs
echo "update-configs tool updated"
if [ ! -d "$HOME/.config" ]; then
echo "Creating .config directory..."
mkdir $HOME/.config
echo ".config directory created."
fi
if [ ! -d "$HOME/.config/nvim" ]; then
echo "Creating .config/nvim directory..."
mkdir $HOME/.config/nvim
echo ".config/nvim directory created."
fi
echo "Updating .bashrcx file..."
wget $BASE_URL"bashrcx" -O $HOME/.bashrcx
echo ".bashrcx file updated."
echo "Updating tmux.conf file..."
wget $BASE_URL"tmux.conf" -O $HOME/.tmux.conf
echo "tmux.conf file replaced."
echo "Updating gitmux.conf file..."
wget $BASE_URL"gitmux.conf" -O $HOME/.config/.gitmux.conf
echo "gitmux.conf file replaced."
echo "Updating nvim/init.lua..."
wget $BASE_URL"nvim-init.lua" -O $HOME/.config/nvim/init.lua
echo "nvim/init.lua updated."
echo "Updating nvim/legacy.vim..."
wget $BASE_URL"nvim-legacy.vim" -O $HOME/.config/nvim/legacy.vim
echo "nvim/legacy.vim updated."
echo "Updating coc-settings.json..."
wget $BASE_URL"coc-settings.json" -O $HOME/.config/nvim/coc-settings.json
echo "coc-settings json updated"
echo "Updating ports tool"
wget $BASE_URL"ports" -O $HOME/tools/ports
chmod +x $HOME/tools/ports
echo "ports tool updated"
echo "Updating sniff tool"
wget $BASE_URL"sniff" -O $HOME/tools/sniff
chmod +x $HOME/tools/sniff
echo "sniff tool updated"
echo "Updating remote tool"
wget $BASE_URL"remote" -O $HOME/tools/remote
chmod +x $HOME/tools/remote
echo "remote tool updated"
echo "Updating debinfo tool"
wget $BASE_URL"debinfo" -O $HOME/tools/debinfo
chmod +x $HOME/tools/debinfo
echo "debinfo tool updated"
echo "Updating gshow tool"
wget $BASE_URL"gshow" -O $HOME/tools/gshow
chmod +x $HOME/tools/gshow
echo "gshow tool updated"
echo "Updating gblame tool"
wget $BASE_URL"gblame" -O $HOME/tools/gblame
chmod +x $HOME/tools/gblame
echo "gblame tool updated"
echo "Updating rm-nvim-bookmarks tool"
wget $BASE_URL"rm-nvim-bookmarks" -O $HOME/tools/rm-nvim-bookmarks
chmod +x $HOME/tools/rm-nvim-bookmarks
echo "rm-nvim-bookmarks tool updated"