summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-09-27 12:22:09 -0400
committerJune McEnroe <june@causal.agency>2017-09-27 12:22:09 -0400
commitc64041c2a8a47474767ead882e12b176f1041c66 (patch)
treee7ec5fe238e8e180f8061a9e81b3197d7f15e481
parentRemove git from common packages (diff)
downloadsrc-c64041c2a8a47474767ead882e12b176f1041c66.tar.gz
src-c64041c2a8a47474767ead882e12b176f1041c66.zip
Sort tail of link.zsh on import
Diffstat (limited to '')
-rwxr-xr-ximport.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/import.zsh b/import.zsh
index 6b69865a..8c3309b0 100755
--- a/import.zsh
+++ b/import.zsh
@@ -18,4 +18,8 @@ dest_path="$PWD/home/$1"
 mkdir -p "$(dirname "$dest_path")"
 mv "$source_path" "$dest_path"
 ln -s "$dest_path" "$source_path"
+
 echo "link '$1'" >> link.zsh
+head=$(head -n 21 link.zsh)
+tail=$(tail -n +21 link.zsh | sort)
+echo "$head\n$tail" > link.zsh