dotfiles: update scripts

This commit is contained in:
2019-01-26 16:41:03 +02:00
parent 830add6f7b
commit 0fbae3df60
3 changed files with 4 additions and 22 deletions

View File

@@ -22,6 +22,7 @@ brew "redis", restart_service: true
brew "ripgrep" brew "ripgrep"
brew "speedtest-cli" brew "speedtest-cli"
brew "stow" brew "stow"
brew "tree"
brew "streamlink" brew "streamlink"
brew "tig" brew "tig"
brew "tldr" brew "tldr"

3
symlink.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
for dir in $(ls -d */); do stow -Rv ${dir}; done

22
sync.sh
View File

@@ -1,22 +0,0 @@
# xcode-select --install
if ! [ -x "$(command -v brew)" ]; then
echo "==> Found brew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "==> Brew already installed"
fi
echo "==> Brew bundle"
brew bundle
if [ -f ~/.local/share/nvim/site/autoload/plug.vim ]; then
echo "==> Found vim-plug"
else
echo "==> Installing vim-plug"
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
echo "==> Symlinking dotfiles"
for dir in $(ls -d */); do stow -Rv ${dir}; done