From 522399570d46f29f1caf6f8b0da0877fc37b0e46 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 27 Sep 2017 12:22:09 -0400 Subject: Sort tail of link.zsh on import --- import.zsh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit 1.4.1