NonlinearFruit / dotfiles

A simple repo that elegantly manages my configs and scripts.
5 stars 0 forks source link

If `ln` and `cp` fails, maybe `curl`? #11

Closed NonlinearFruit closed 1 year ago

NonlinearFruit commented 1 year ago
ln -sf $(pwd)/\(.[0]) \(.[1]) 2> /dev/null || cp \(.[0]) \(.[1]) || curl \(.[0]) -o \(.[1])

https://github.com/NonlinearFruit/dotfiles/blob/master/gap.sh#L5

NonlinearFruit commented 1 year ago

This would allow mapping a url to a file. This would be useful when a user doesn't want to control the file directly.