diff options
Diffstat (limited to 'install')
| -rwxr-xr-x | install | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -45,8 +45,8 @@ link_home_files() { # generate a file with the file path in this repo and the link for the real path # each line is in the format: TARGET LINKNAME find "$rice_dir" -type f | - sed "/\.$other_platform\./ d" | - sed -e 'p' -e "s:^$rice_dir:$dest_dir:" -e "s/\.$platform\././" | + sed "/\.$other_platform/ d" | + sed -e 'p' -e "s:^$rice_dir:$dest_dir:" -e "s/\.$platform//" | awk '{ if (NR % 2 == 1) { print "'"$(pwd)"'" "/" $0 } else print }' | xargs -L 2 > "$paths" < "$paths" cut -d ' ' -f 2 | xargs -L 1 dirname | xargs -L 1 mkdir -pv @@ -58,14 +58,6 @@ link_home_files 'local' "$HOME/.local" ln -svf "$(pwd)/config/zsh/zprofile" "$HOME/.zprofile" -################################################################################ -# sync install -################################################################################ - -echo '---------------------------- SYNC FILE LINKS ----------------------------' -mkdir -pv "$CLOUT_SYNC_PATH" -ln -svf "$CLOUT_SYNC_PATH/newsboat/urls" "$XDG_CONFIG_HOME/newsboat/urls" -ln -svf "$CLOUT_SYNC_PATH/qutebrowser/bookmarks/urls" "$XDG_CONFIG_HOME/qutebrowser/bookmarks/urls" ################################################################################ # vim plug @@ -110,6 +102,15 @@ parallel_wait # Linux specific ############################################################################### +################################################################################ +# sync install +################################################################################ + +echo '---------------------------- SYNC FILE LINKS ----------------------------' +mkdir -pv "$CLOUT_SYNC_PATH" +ln -svf "$CLOUT_SYNC_PATH/newsboat/urls" "$XDG_CONFIG_HOME/newsboat/urls" +ln -svf "$CLOUT_SYNC_PATH/qutebrowser/bookmarks/urls" "$XDG_CONFIG_HOME/qutebrowser/bookmarks/urls" + ############################################################################### # crontab ############################################################################### |
