Skip to content

Commit

Permalink
Merge pull request #205 from m-b-t-n/bugfix/204-git-fix-path-symlink
Browse files Browse the repository at this point in the history
common: Fix the procedure to make symlinks under `.config/`
  • Loading branch information
m-b-t-n authored Jan 5, 2025
2 parents 4dd102d + 35a71df commit a0018d8
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ fi

echo "### Make symlinks..."

# gitconfig
if [[ "${DEBUG_MODE}" == "true" ]]; then
echo -e "\tln -sfv ~/dotfiles/git ~/.config"
else
ln -sfv ~/dotfiles/git ~/.config
fi

# tig
if [[ "${DEBUG_MODE}" == "true" ]]; then
echo -e "\tln -sfv dotfiles/tig/tigrc ~/.tigrc"
Expand All @@ -154,34 +147,37 @@ else
ln -sfv dotfiles/vim/gvimrc ~/.gvimrc
fi

mkdir -p ~/.config

# gitconfig
if [[ "${DEBUG_MODE}" == "true" ]]; then
echo -e "\tln -sfv ~/dotfiles/git ~/.config/git"
else
ln -sfv ~/dotfiles/git ~/.config/git
fi

# ranger
if [[ "${DEBUG_MODE}" == "true" ]]; then
echo -e "\tmkdir -p ~/.config"
echo -e "\tln -sfv ~/dotfiles/ranger/config ~/.config/ranger"
else
mkdir -p ~/.config
ln -sfv ~/dotfiles/ranger/config ~/.config/ranger
fi

# broot
if [[ "${DEBUG_MODE}" == "true" ]]; then
echo -e"echo \t\"DOTFILES_ENV_CONFIG_BROOT_ENABLE=y\" >> ~/dotfiles/env/environment_vars"
echo -e "\tmkdir -p ~/.config"
echo -e "\tln -sfv ~/dotfiles/broot ~/.config/broot"
else
if [[ -e "/usr/local/bin/broot" ]]; then
echo "DOTFILES_ENV_CONFIG_BROOT_ENABLE=y" >> ~/dotfiles/env/environment_vars
mkdir -p ~/.config
ln -sfv ~/dotfiles/broot ~/.config/broot
fi
fi

# wezterm
if [[ "${DEBUG_MODE}" == "true" ]]; then
echo -e "\tmkdir -p ~/.config"
echo -e "\tln -sfv ~/dotfiles/wezterm ~/.config/wezterm"
else
mkdir -p ~/.config
ln -sfv ~/dotfiles/wezterm ~/.config/wezterm
fi

Expand Down

0 comments on commit a0018d8

Please sign in to comment.