-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup
More file actions
executable file
·34 lines (28 loc) · 768 Bytes
/
setup
File metadata and controls
executable file
·34 lines (28 loc) · 768 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
#
# need ripgrep and fzf
if type zsh > /dev/null; then
function link() {
rm -rf $2
ln -s $1 $2
}
mkdir -p $HOME/.config
echo "zsh"
link $HOME/.dotfiles/shell/zshrc $HOME/.zshrc
touch $HOME/.zshrc.local
#link starship config
link $HOME/.dotfiles/shell/starship.toml $HOME/.config/starship.toml
echo "tmux"
link $HOME/.dotfiles/tmux.conf $HOME/.tmux.conf
if type nvim > /dev/null; then
echo "nvim"
link $HOME/.dotfiles/nvim $HOME/.config/nvim
else
# vim
echo "vim"
link $HOME/.dotfiles/vim/vimrc $HOME/.vimrc
link $HOME/.dotfiles/vim $HOME/.vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
else
echo "install zsh please"
fi