rice

personal dot files and scripts for linux and macOS
Log | Files | Refs | README | LICENSE

diff (1092B)


      1 #!/bin/sh -e
      2 
      3 dff() {
      4     diff $@ | sed '/Only in/d'
      5 }
      6 
      7 linux() {
      8     dff -r dots/.config/mpd         $HOME/.config/mpd
      9     dff -r dots/.config/ncmpcpp     $HOME/.config/ncmpcpp
     10     dff -r dots/.config/notmuch     $HOME/.config/notmuch
     11     dff -r dots/.config/offlineimap $HOME/.config/offlineimap
     12     dff    dots/.local/share/gnupg/gpg-agent.conf.linux $HOME/.local/share/gnupg/gpg-agent.conf
     13 }
     14 
     15 macos() {
     16     dff    dots/.zshenv             $HOME/.zshenv
     17     dff    dots/.local/share/gnupg/gpg-agent.conf.macos $HOME/.local/share/gnupg/gpg-agent.conf
     18 }
     19 
     20 shared() {
     21     dff -r dots/.config/aliasrc     $HOME/.config/aliasrc
     22     dff -r dots/.config/emacs       $HOME/.config/emacs
     23     dff -r dots/.config/git         $HOME/.config/git
     24     dff -r dots/.config/lf          $HOME/.config/lf
     25     dff -r dots/.config/zsh         $HOME/.config/zsh
     26     dff -r dots/.local/bin          $HOME/.local/bin
     27     dff -r dots/.local/share/emacs  $HOME/.local/share/emacs
     28 }
     29 
     30 case "$(uname -s)" in
     31     Linux*)  shared; linux ;;
     32     Darwin*) shared; macos ;;
     33     *)       echo "Usage: $0 [-d]"; exit 1 ;;
     34 esac