blob: 91f21529a8be770acb2cc9ee9f9e0ffde7c8ae57 (
plain)
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
|
#!/bin/sh
# #
# zsh
# #
ZSH=$HOME/.config/zsh/ohmyzsh
if [ ! -d "$ZSH" ]; then
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
# #
# vim
# #
PLUG="$HOME/.local/share/nvim/site/autoload/plug.vim"
if [ ! -f "$PLUG" ]; then
curl -fLo $PLUG --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
if command -v nvim > /dev/null 2>&1; then
nvim '+PlugUpdate' '+PlugClean!' '+PlugUpdate' '+qall'
fi
# #
# gammastep
# #
if command -v gammastep > /dev/null 2>&1; then
sudo ln -s "$HOME/.config/gammastep/systemd/gammastep@.service" /etc/systemd/system/
sudo ln -s "$HOME/.config/gammastep/systemd/gammastep-systemd" /usr/local/bin/
sudo systemctl enable "gammastep@$USER" --now
fi
# #
# fcitx5
# #
if command -v fcitx5 > /dev/null 2>&1; then
sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5@.service" /etc/systemd/system/
sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5-systemd" /usr/local/bin/
sudo systemctl enable "fcitx5@$USER" --now
fi
|