Repository navigation
Expand file tree
/
Copy pathinstall
More file actions
executable file
·69 lines (61 loc) · 2.57 KB
/
Copy pathinstall
File metadata and controls
executable file
·69 lines (61 loc) · 2.57 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
60
61
62
63
64
65
66
67
68
69
#!/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/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"
## hyprland
mkdir -p "$HOME/.config/hypr"
ln -s -f "$HOME/dotfiles/hypr/hyprland.lua" "$HOME/.config/hypr/hyprland.lua"
ln -s -f "$HOME/dotfiles/hypr/hypridle.conf" "$HOME/.config/hypr/hypridle.conf"
ln -s -f "$HOME/dotfiles/hypr/hyprlock.conf" "$HOME/.config/hypr/hyprlock.conf"
## ironbar
mkdir -p "$HOME/.config/ironbar"
ln -s -f "$HOME/dotfiles/ironbar/config.toml" "$HOME/.config/ironbar/config.toml"
## hyprshell
mkdir -p "$HOME/.config/hyprshell"
ln -s -f "$HOME/dotfiles/hyprshell/config.toml" "$HOME/.config/hyprshell/config.toml"
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