servers/bin/bootstrap.sh @ 3cc7cd9eb954

More
author Steve Losh <steve@stevelosh.com>
date Fri, 17 Jan 2020 20:23:55 -0500
parents 495491e3e589
children (none)
#!/usr/bin/env bash

set -euo pipefail

function ensure_link {
    test -L "$HOME/$2" || test ! -e "$HOME/$1" || ln -s "$HOME/$1" "$HOME/$2"
}

mkdir -p ~/.config/fish
mkdir -p ~/.config/nvim
mkdir -p ~/src/hg
mkdir -p ~/bin
mkdir -p ~/src

ensure_link "src/dotfiles/hgrc"              ".hgrc"
ensure_link "src/dotfiles/bash_profile"      ".bash_profile"
ensure_link "src/dotfiles/dircolors"         ".dircolors"
ensure_link "src/dotfiles/ffignore"          ".ffignore"
ensure_link "src/dotfiles/fish/config.fish"  ".config/fish/config.fish"
ensure_link "src/dotfiles/fish/functions"    ".config/fish/functions"
ensure_link "src/dotfiles/gitconfig"         ".gitconfig"
ensure_link "src/dotfiles/gitignore"         ".gitignore"
ensure_link "src/dotfiles/hgignore"          ".hgignore"
ensure_link "src/dotfiles/tmux/tmux.conf"    ".tmux.conf"
ensure_link "src/dotfiles/vim"               ".vim"
ensure_link "src/dotfiles/vim/vimrc"         ".vimrc"