-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall
More file actions
executable file
·59 lines (51 loc) · 2.11 KB
/
install
File metadata and controls
executable file
·59 lines (51 loc) · 2.11 KB
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
#!/bin/bash
command -v git >/dev/null 2>&1 || { echo "Make sure, that 'git' is installed. Aborting." >&2; exit 1; }
# symlinks
## alacritty
ln -s -f "$HOME/dotfiles/alacritty.toml" "$HOME/.alacritty.toml"
## tmux
ln -s -f "$HOME/dotfiles/tmux.conf" "$HOME/.tmux.conf"
git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
## zsh
ln -s -f "$HOME/dotfiles/zprofile" "$HOME/.zprofile"
ln -s -f "$HOME/dotfiles/zshrc" "$HOME/.zshrc"
ln -s -f "$HOME/dotfiles/zshenv" "$HOME/.zshenv"
## vim
mkdir -p "$HOME/.config/nvim"
ln -s -f "$HOME/dotfiles/init.lua" "$HOME/.config/nvim/init.lua"
ln -s -f "$HOME/dotfiles/neoconf.json" "$HOME/.config/nvim/neoconf.json"
ln -s -f "$HOME/dotfiles/lua" "$HOME/.config/nvim/"
ln -s -f "$HOME/dotfiles/ftplugin" "$HOME/.config/nvim/"
ln -s -f "$HOME/dotfiles/spell" "$HOME/.config/nvim/"
ln -s -f "$HOME/dotfiles/pyproject.toml" "$HOME/.config/nvim/pyproject.toml"
## git
ln -s -f "$HOME/dotfiles/gitconfig" "$HOME/.gitconfig"
ln -s -f "$HOME/dotfiles/gitignore" "$HOME/.gitignore"
## jj
ln -s -f "$HOME/dotfiles/jjconfig.toml" "$HOME/.jjconfig.toml"
## spotify
mkdir -p "$HOME/.config/spotifyd"
ln -s -f "$HOME/dotfiles/spotifyd.conf" "$HOME/.config/spotifyd/spotifyd.conf"
## gdb
ln -s -f "$HOME/dotfiles/gdbinit" "$HOME/.gdbinit"
## ripgrep
ln -s -f "$HOME/dotfiles/ripgreprc" "$HOME/.ripgreprc"
echo "Symlinks successfully created for ~/dotfiles."
if command -v uv &> /dev/null; then
pushd "$HOME/.config/nvim" || exit 0
uv sync
popd || exit 0
else
echo "WARNING: \`uv\` is not installed"
echo "To get reliable python support in nvim run"
echo "\`uv sync\` in \`$HOME/.config/nvim\`"
fi
mkdir -p "$HOME/.zcomp"
if command -v rustup &> /dev/null; then
rustup completions zsh > "$HOME/.zcomp/_rustup"
rustup completions zsh cargo > "$HOME/.zcomp/_cargo"
fi
if command -v luarocks &> /dev/null; then
luarocks completion zsh > "$HOME/.zcomp/_luarocks"
fi
exit 0