#!/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-user.service" /etc/systemd/user/ systemctl --user enable "gammastep-user" --now fi # # # fcitx5 # # if command -v fcitx5 > /dev/null 2>&1; then sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5-user.service" /etc/systemd/user/ sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5-user.timer" /etc/systemd/user/ systemctl --user enable 'fcitx5-user.timer' --now fi