12345678910111213141516171819202122232425262728293031323334353637 |
- #! /usr/bin/env bash
- # vim: ft=sh
- # Make sure to exit this script on any failure.
- set -e
- stow-subdirs-in () {
- cd "$1"
- for dir in */; do stow --no-folding "$dir"; done
- cd -
- }
- # Go to where this script is located.
- cd $(dirname "$(readlink -f "$0")")
- # Add some remotes to our local nixpkgs clone.
- git clone https://vyp@github.com/vyp/nixpkgs ../nixpkgs
- cd ../nixpkgs
- git remote add channels https://github.com/nixos/nixpkgs-channels
- git remote add main https://github.com/nixos/nixpkgs
- cd -
- # Get some more necessary repositories.
- git clone https://vyp@github.com/vyp/scripts ../code/scripts
- git clone https://vyp@github.com/vyp/data ../data
- # Finally stow now that we have everything we should need.
- stow-subdirs-in .
- stow-subdirs-in ../data
- # Lastly, reset the font cache to setup fonts.
- fc-cache -fv
- # Local Variables:
- # mode: sh
- # End:
|