-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
67 lines (57 loc) · 1.49 KB
/
install.sh
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
#!/bin/sh
#install dotfiles if necessary
firefox() {
(
cd "$HOME/.mozilla/firefox" || return
[ -r ./profiles.ini ] || return
for profile_path in $(grep Path profiles.ini | cut -d= -f2-); do
echo "install firefox profile: $profile_path"
ln -s "$HOME/user.js" "./$profile_path/user.js"
mkdir -p "./$profile_path/chrome"
ln -s "$HOME/userContent.css" "./$profile_path/chrome/userContent.css"
done
)
}
nvim() {
_plugindir="$HOME/.local/share/nvim/site/pack/plugins/start"
mkdir -p "$_plugindir"
# these should be tracked submodules in the future
_github="https://github.com/"
for repo in \
"$_github/neovim/nvim-lspconfig.git" \
"$_github/tpope/vim-commentary.git" \
"$_github/tpope/vim-unimpaired.git" \
"$_github/tpope/vim-surround.git" \
; do
git -C "$_plugindir" clone --origin=upstream "$repo"
done
}
nvim_dap() {
_plugindir="$HOME/.local/share/nvim/site/pack/plugins/start"
mkdir -p "$_plugindir"
# these should be tracked submodules in the future
_github="https://github.com/"
for repo in \
"$_github/mfussenegger/nvim-dap.git" \
"$_github/leoluz/nvim-dap-go.git" \
"$_github/rcarriga/nvim-dap-ui.git" \
"$_github/theHamsta/nvim-dap-virtual-text.git" \
; do
git -C "$_plugindir" clone --origin=upstream "$repo"
done
}
lsp() {
pipx install --include-deps python-lsp-server
pipx inject python-lsp-server \
pylsp-mypy \
python-lsp-isort \
python-lsp-black \
pyls-memestra \
pylsp-rope \
pylint pylint-pytest
}
cd "$HOME"
firefox
nvim
nvim_dap
lsp