Allow for nonexistence of files

master
trémeur 5 years ago
parent e57c59ad27
commit a3f3ecce13

@ -7,12 +7,12 @@ csub=$(sed '2!d' ~/.cache/wal/colors)
mkdir -p ~/.config/tint2
cp ~/.linux/dots/tint2rctemplate ~/.config/tint2/plac
sed -i "s/TEMPLATE/${csub}/g" ~/.config/tint2/plac
rm ~/.config/tint2/tint2rc
rm -f ~/.config/tint2/tint2rc
mv ~/.config/tint2/plac ~/.config/tint2/tint2rc
killall -SIGUSR1 tint2
# Create new .conkyrc
cp ~/.linux/dots/conkytemplate ~/conkyplac
sed -i "s/COLOURTEMPLATE/${csub}/g" ~/conkyplac
rm ~/.conkyrc
rm -f ~/.conkyrc
mv ~/conkyplac ~/.conkyrc

@ -6,9 +6,9 @@
mv ~/mdddots ~/.linux
# Get rid of existing files
rm ~/.zshrc ~/.gitconfig ~/.XCompose
rm ~/.config/cmus/rc
rm ~/.oh-my-zsh/custom/aliases
rm -f ~/.zshrc ~/.gitconfig ~/.XCompose
rm -f ~/.config/cmus/rc
rm -f ~/.oh-my-zsh/custom/aliases
# Symlink files from git repo
ln -s ~/.linux/dots/.zshrc ~

Loading…
Cancel
Save