Allow for nonexistence of files

master
trémeur 5 years ago
parent e57c59ad27
commit eb5ac23bce

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

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

Loading…
Cancel
Save