diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-05-31 00:57:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-05-31 00:57:13 +0900 |
| commit | 77db37d3506edd006c0d4edc8b216d869a06f30b (patch) | |
| tree | 6cc6cb455ad32244c89002abc4fb54cb2d70af81 /setup.sh | |
| parent | 98be04b9ddb9ce3b0a8c41c74cb57460f1d872eb (diff) | |
| download | dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.tar.gz dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.tar.zst dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.zip | |
fish shell
Diffstat (limited to 'setup.sh')
| -rwxr-xr-x | setup.sh | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -1,12 +1,17 @@ -#!/bin/sh +#!/bin/bash -for name in .gitconfig .vim .vimrc .zshrc -do - ln -s -f ~/dotfiles/$name ~/$name +for name in .gitconfig .vim .vimrc .zshrc; do + if [ ! -L ~/$name ]; then + ln -s -f ~/dotfiles/$name ~/$name + fi done -[ -d ~/.config ] || mkdir ~/.config -for name in alacritty git starship.toml -do - ln -s -f ~/dotfiles/.config/$name ~/.config/$name +if [ ! -d ~/.config ]; then + mkdir ~/.config +fi + +for name in alacritty fish git starship.toml; do + if [ ! -L ~/.config/$name ]; then + ln -s -f ~/dotfiles/.config/$name ~/.config/$name + fi done |
