stop using rm where ln -n suffices

This commit is contained in:
Aminda Suomalainen 2024-05-19 14:07:21 +03:00
parent 17a189396b
commit 6f7d510f89
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 2 additions and 3 deletions

View File

@ -30,8 +30,7 @@ cat conf/firefox-forbidden-policies.js >~/.librewolf/librewolf.overrides.cfg
#cat conf/librewolf.overrides.cfg >~/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg
cat conf/firefox-forbidden-policies.js >~/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg
mkdir -p ~/.local/share/applications
ln -sfv ~/.shell-things/local/share/applications ~/.local/share/applications/shell-things
rm -fv ~/.shell-things/local/share/applications/applications
ln -nsfv ~/.shell-things/local/share/applications ~/.local/share/applications/shell-things
if hash update-desktop-database 2>/dev/null; then
update-desktop-database ~/.local/share/applications
fi

View File

@ -23,7 +23,7 @@ mkdir -p ~/.config/git
cat conf/gitconfig >~/.config/git/config
touch ~/.gitconfig
rm ~/.gitconfig
ln -sfv ~/.config/git/config ~/.gitconfig
ln -nsfv ~/.config/git/config ~/.gitconfig
mkdir -p ~/.git-template
cat rc/vimrc >~/.vimrc
mkdir -p ~/.config/nvim/