Improve stow command
This commit is contained in:
parent
d85f5f853f
commit
1007c354b9
1 changed files with 6 additions and 1 deletions
7
stow
7
stow
|
@ -1,10 +1,15 @@
|
|||
#!/bin/env bash
|
||||
set -e
|
||||
if [ ! $(which stow) ]; then
|
||||
echo 'Stow is not installed! apt/dnf install stow | pacman -S stow | apk add stow' > /dev/stderr
|
||||
exit 1
|
||||
fi;
|
||||
echo 'Stow is installed & in PATH.'
|
||||
if [ -f $HOME/.bashrc ]; then
|
||||
echo 'Removing existing bashrc...'
|
||||
mv $HOME/.bashrc $HOME/.bashrc.pre-stow
|
||||
fi;
|
||||
|
||||
echo 'All file conflicts resolved, stowing...'
|
||||
stow .
|
||||
stow -t "$HOME" .
|
||||
echo 'Finished stowing.'
|
||||
|
|
Loading…
Reference in a new issue