#!/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

#!/bin/bash

set -eu

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

cd $THIS_DIR

echo "start setup..."

for f in .??*; do
  # Ignore files
  [[ $f == .git ]] && continue
  [[ $f == .gitignore ]] && continue
  [[ $f == .gitmodules ]] && continue

  # Make symbolic links of dotfile to HOME
  ln -snfv ~/dotfiles/"$f" ~/
done

echo "finished!"

Change file ignore conditoin for gitconfig file
[Fix] Change file ignore conditoin for gitconfig file
