-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstallvim.sh
executable file
·57 lines (48 loc) · 1.2 KB
/
installvim.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
#!/usr/bin/env bash
location="$HOME/dotfiles"
config="$location/.config"
function kitty_themes {
mkdir -p "$HOME/.config/kitty"
KITTY_THEMES_DIR="$HOME/.config/kitty/kitty-themes"
if [[ ! -d "$KITTY_THEMES_DIR" ]]; then
git clone --depth 1 https://github.com/dexpota/kitty-themes.git \
"$KITTY_THEMES_DIR"
fi
}
function link_files {
mkdir -p "$HOME/.config/nvim"
mkdir -p "$HOME/.config/tmux"
mkdir -p "$HOME/.config/kitty"
ln -bs "$config/nvim/init.lua" "$HOME/.config/nvim/init.lua"
ln -bs "$config/kitty/kitty.conf" "$HOME/.config/kitty/kitty.conf"
ln -bs "$config/tmux/tmux.conf" "$HOME/.config/tmux/tmux.conf"
ln -bs "$location/.zshrc" "$HOME/.zshrc"
ln -bs "$location/.zshlocal" "$HOME/.zshlocal"
}
function install_mac {
brew install neovim tmux nnn fzf git-delta lazygit autojump \
alfred amethyst
brew install --cask kitty
}
function install_arch {
sudo pacman -S --noconfirm \
kitty \
neovim \
tmux \
nnn \
fzf \
git-delta \
lazygit \
autojump-rs
}
function install_redhat {
sudo dnf copr enable atim/lazygit -y
sudo dnf -qy install \
kitty \
neovim \
tmux \
fzf \
git-delta \
lazygit \
autojump
}