summary refs log tree commit diff
path: root/link.zsh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-16 18:00:42 -0400
committerJune McEnroe <june@causal.agency>2018-08-16 18:00:42 -0400
commit1750a4cc5e03521fb85932a14d1cf271d27ec1ea (patch)
tree3aa012b9adf711d9378094ae5d94f8d0b94658f5 /link.zsh
parentShorten .local ssh names (diff)
downloadsrc-1750a4cc5e03521fb85932a14d1cf271d27ec1ea.tar.gz
src-1750a4cc5e03521fb85932a14d1cf271d27ec1ea.zip
Port all scripts to sh
Not hard, but having to escape ( ) inside [ ] had me confused for a bit.
Diffstat (limited to 'link.zsh')
-rwxr-xr-xlink.zsh18
1 files changed, 0 insertions, 18 deletions
diff --git a/link.zsh b/link.zsh
deleted file mode 100755
index a0a9e7aa..00000000
--- a/link.zsh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/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 -r findPath; do
-	filePath="$PWD/$findPath"
-	linkPath="$HOME/${findPath#home/}"
-	mkdir -p "$(dirname "$linkPath")"
-	[[ ( -f "$linkPath" && -L "$linkPath" ) || ! -f "$linkPath" ]]
-	ln -s -f "$filePath" "$linkPath"
-done