#!/bin/bash

set -eu

THIS_DIR=$(cd $(dirname $0); pwd)

cd $THIS_DIR

echo "start setup..."
for f in .??*; do
  ln -snfv ~/dotfiles/"$f" ~/
done

#!/bin/bash

set -eu

THIS_DIR=$(cd $(dirname $0); pwd)

cd $THIS_DIR

echo "start setup..."
for f in .??*; do
  if [[ $f =~ .git* ]]; then
          continue
  fi
  ln -snfv ~/dotfiles/"$f" ~/
done

Add if condition to remove .git file links
Add if condition to remove .git file links
