From ea1b7e67fa0919add6908df79e8979d99e97d6d4 Mon Sep 17 00:00:00 2001
From: neodarz <neodarz@neodarz.net>
Date: Sun, 23 Apr 2017 16:50:59 +0200
Subject: Add stow script like for install user's services

---
 stow-services | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 stow-services

diff --git a/stow-services b/stow-services
new file mode 100755
index 0000000..23f1ed9
--- /dev/null
+++ b/stow-services
@@ -0,0 +1,11 @@
+serviceName=$(echo $1 | cut -d'/' -f'2')
+if [[ $1 =~ "/" && $serviceName != "" ]]; then	
+	if [ -f "$1" ]; then
+		sudo ln -s $(readlink -f $1) /usr/lib/systemd/user/$serviceName
+	else
+		echo "Warning ! You must be in the dotfile folder to execute this !"
+		echo "Sorry the file $1 not found !"
+	fi
+else
+	echo "Syntax: services/<name of the service"
+fi
-- 
cgit v1.2.1