summary refs log tree commit diff
path: root/link.zsh
blob: 42c8d04cc0720019031849dbc86c7fd398e5ec70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env zsh
set -o errexit -o nounset -o pipefail

if [ $# -eq 1 ]; then
    linkPath="$1"
    filePath="$PWD/home/${linkPath#$HOME/}"
    [ ! -f "$filePath" ]
    mkdir -p $(dirname "$filePath")
    mv "$linkPath" "$filePath"
fi

find home -type f | while read findPath; do
    filePath="$PWD/$findPath"
    linkPath="$HOME/${findPath#home/}"
    [ -L "$linkPath" ] && continue
    mkdir -p $(dirname "$linkPath")
    ln -s "$filePath" "$linkPath"
    echo "$linkPath"
done
tr>2020-01-08Don't add dt margins to Bl-compact listsJune McEnroe 2020-01-08Use mandoc -T html for about-filterJune McEnroe 2020-01-05Add The Book of FloraJune McEnroe 2020-01-04Replace gr alias with git resetJune McEnroe 2020-01-03Remove shotty -c flag from upJune McEnroe 2020-01-03Add Darling Don't CryJune McEnroe 2020-01-01Update license header templates for the new yearJune McEnroe 2019-12-26Add \S to sort inside bracesJune McEnroe 2019-12-23Reformat music.txtJune McEnroe 2019-12-23Rename music.md to music.txtJune McEnroe 2019-12-23Add DO YOU DOUBT ME TRAITORJune McEnroe 2019-12-22Add license header to cgit CSSJune McEnroe 2019-12-22Add The Book of EttaJune McEnroe 2019-12-21Revert "Add first working version of imbox"June McEnroe 2019-12-21Add first working version of imboxJune McEnroe 2019-12-20Respect mailmap in gl pretty formatJune McEnroe 2019-12-20Set LANG in cgit filtersJune McEnroe 2019-12-20Source .editrc before applying -v or -eJune McEnroe 2019-12-20Disable signing commitsJune McEnroe 2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe 2019-12-16Post "cgit setup"June McEnroe