dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b80823c6deaaab032bab50f02885200612b5a16d
parent cc76718168c2d77c0c7e14aca6779e3f9b279e50
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed,  1 Nov 2017 08:54:05 -0400

change order of commands during symlink script

Diffstat:
Minit/10_symlinks.sh | 52++++++++++++++++++++++++++--------------------------
1 file changed, 26 insertions(+), 26 deletions(-)

diff --git a/init/10_symlinks.sh b/init/10_symlinks.sh @@ -1,31 +1,5 @@ #!/usr/bin/env bash -# Create folders -mkdir -p ~/bin -mkdir -p ~/.ipython/profile_default -mkdir -p ~/.mutt/cache -chmod 0700 ~/.mutt/cache -[ -f ~/.mutt/aliases ] || touch ~/.mutt/aliases -mkdir -p ~/tmp -mkdir -p $(kpsexpand '$TEXMFHOME')/bibtex/bib/myfiles/ - -# Symlink directories from iCloud drive to home -if [ "$(uname)" = "Darwin" ]; then - ln -shvf ~/Library/Mobile\ Documents/com\~apple\~CloudDocs \ - ~/iCloud - ln -shvf ~/iCloud/articles ~/articles - ln -shvf ~/iCloud/articles/own/BIBnew.bib \ - $(kpsexpand '$TEXMFHOME')/bibtex/bib/myfiles/BIB.bib - ln -shvf ~/iCloud/src ~/src - ln -shvf ~/iCloud/doc ~/doc - ln -shvf ~/doc/.password-store ~/.password-store - ln -shvf ~/iCloud/uni ~/uni - ln -shvf ~/iCloud/videos ~/videos - ln -shvf \ - ~/Library/Mobile\ Documents/27N4MQEA55~pro~writer/Documents/ \ - ~/iawriter -fi - shopt -s dotglob for f in links/*; do @@ -55,3 +29,29 @@ for f in links/*; do ln -sv $SOURCE $TARGET done + +# Create folders and non-symlink files +mkdir -p ~/.ipython/profile_default +mkdir -p ~/.mutt/cache +chmod 0700 ~/.mutt/cache +[ -f ~/.mutt/aliases ] || touch ~/.mutt/aliases +mkdir -p ~/tmp +mkdir -p $(kpsexpand '$TEXMFHOME')/bibtex/bib/myfiles/ + +# Symlink directories from iCloud drive to home +if [ "$(uname)" = "Darwin" ]; then + ln -shvf ~/Library/Mobile\ Documents/com\~apple\~CloudDocs \ + ~/iCloud + ln -shvf ~/iCloud/articles ~/articles + ln -shvf ~/iCloud/articles/own/BIBnew.bib \ + $(kpsexpand '$TEXMFHOME')/bibtex/bib/myfiles/BIB.bib + ln -shvf ~/iCloud/src ~/src + ln -shvf ~/iCloud/doc ~/doc + ln -shvf ~/doc/.password-store ~/.password-store + ln -shvf ~/iCloud/uni ~/uni + ln -shvf ~/iCloud/videos ~/videos + ln -shvf \ + ~/Library/Mobile\ Documents/27N4MQEA55~pro~writer/Documents/ \ + ~/iawriter +fi +