dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 19f4ac40f8b771ee6f539fdfbac8b0ef9ab65133
parent d8c52ee3b7742e9d628edb12ae3bd6e06c31671b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue,  8 May 2018 00:50:00 +0200

Added some logging messages

Diffstat:
M.commonprofile | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/.commonprofile b/.commonprofile @@ -168,10 +168,23 @@ linkdir() { if [[ "$1" != */ ]]; then 1=$(echo "$1" | sed "s/$/\//") fi + echo "Linking content of $1 to `pwd`..." + cr=0 + for f in ./*; do + if [ -L "$f" ]; then + rm ./"$f" + ((cr++)) + fi + done + + ca=0 for i in $1*; do ln -s "$i" "`echo $i | rev | cut -d/ -f1 | rev`" echo "'$i' -> './`echo $i | rev | cut -d/ -f1 | rev`'" + ((ca++)) done + echo "Removed $cr symlinks." + echo "Linked $ca directories into current directory." } ######################