-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·40 lines (33 loc) · 952 Bytes
/
install.sh
File metadata and controls
executable file
·40 lines (33 loc) · 952 Bytes
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
#!/bin/bash
CURRENT_DIR=$(pwd)
# append zshrc config
if [ -e ${CURRENT_DIR}/zshrc ]; then
cat zshrc >>${HOME}/.zshrc
fi
# link ghostty config
if [ -e ${CURRENT_DIR}/ghostty ]; then
mkdir -p ${HOME}/.config/ghostty
ln -f ${CURRENT_DIR}/ghostty.conf ${HOME}/.config/ghostty/config
fi
# link starship
if [ -e ${CURRENT_DIR}/starship.toml ]; then
mkdir -p ${HOME}/.config/starship
ln -f ${CURRENT_DIR}/starship.toml ${HOME}/.config/starship/starship.toml
fi
# link tmux config file
if [ -e ${CURRENT_DIR}/k-tmux/install.sh ]; then
sh -x ${CURRENT_DIR}/k-tmux/install.sh
else
echo '[WARNING] t-mux install script is not exists.'
fi
# link git config file
if [ -e ${CURRENT_DIR}/gitconfig ]; then
if [ "$(uname -s)" == "Darwin" ]; then
brew install git-delta
fi
ln -f ${CURRENT_DIR}/gitconfig ${HOME}/.gitconfig
else
echo '[WARNING] git config file is not exists.'
fi
# install k-vim
(cd ${CURRENT_DIR}/k-vim || exit) && sh -x install.sh