From e6a3176cdda946eac66f0ee4738c380aa8e19f33 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Mon, 30 Oct 2023 22:54:28 +0100 Subject: [PATCH] Fix issues in new .t script --- .bin/.e | 1 + .bin/.t | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.bin/.e b/.bin/.e index 5b1da75..8fd929b 100755 --- a/.bin/.e +++ b/.bin/.e @@ -2,6 +2,7 @@ declare -A mapper=( [".e"]="$HOME/.bin/.e" + [".t"]="$HOME/.bin/.t" ["alacritty"]="$HOME/.config/alacritty/alacritty.yml" ["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua" ["autostart"]="$HOME/.bin/autostart-manage" diff --git a/.bin/.t b/.bin/.t index 7dda0fd..8abea12 100755 --- a/.bin/.t +++ b/.bin/.t @@ -30,11 +30,11 @@ fi target="$XDG_CONFIG_HOME/templates/$target" if [ -f "$target" ] then - cp "$target" . + cp -i "$target" . echo "Template copied." elif [ -d "$target" ] then - cp -r "$target/*" . + cp -irT "$target" . echo "Template copied." else echo "Error copying template."