summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-27 16:10:40 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-27 17:33:30 -0500
commitf50997ce8bacd444a646c9d62df6847ea6fbe3f1 (patch)
tree13f849100f9ac28216f3b6406fa5896371f56965
parent6a928ec93da30723f950a302cfdd6b3cf3f360d5 (diff)
Create a system for adding symlinks to .config
l---------.arduino2
l---------.bazaar2
-rw-r--r--.config/symlinks30
-rwxr-xr-x.config/symlinks.sh15
l---------.conkeror.mozdev.org2
l---------.emacs.d2
l---------.gimp-2.61
l---------.gimp-2.81
l---------.kde1
l---------.kde/share/apps (renamed from .kde4/share/apps)0
l---------.kde/share/config (renamed from .kde4/share/config)0
l---------.kde41
l---------.netbeans1
l---------.subversion1
l---------.wmii2
15 files changed, 55 insertions, 6 deletions
diff --git a/.arduino b/.arduino
index 25bbfc1..a7ade0f 120000
--- a/.arduino
+++ b/.arduino
@@ -1 +1 @@
-.config/arduino \ No newline at end of file
+.config/arduino/ \ No newline at end of file
diff --git a/.bazaar b/.bazaar
index 42697a1..71ca147 120000
--- a/.bazaar
+++ b/.bazaar
@@ -1 +1 @@
-.config/bazaar \ No newline at end of file
+.config/bazaar/ \ No newline at end of file
diff --git a/.config/symlinks b/.config/symlinks
new file mode 100644
index 0000000..cd38e2f
--- /dev/null
+++ b/.config/symlinks
@@ -0,0 +1,30 @@
+.config/X11/defaults .Xdefaults
+.config/X11/clientrc .xinitrc
+.config/X11/serverrc .xserverrc
+.config/X11/login .xsession
+
+.config/bash/rc.sh .bashrc
+.config/bash/login.sh .bash_login
+.config/bash/logout.sh .bash_logout
+
+.config/git/ignore .gitignore
+.config/git/config .gitconfig
+.config/git/gitk .gitk
+
+.config/arduino/ .arduino
+.config/bazaar/ .bazaar
+.config/emacs/ .emacs.d
+.config/gimp-2.6/ .gimp-2.6
+.config/gimp-2.8/ .gimp-2.8
+.config/mozilla/ .mozilla #
+.config/nanorc .nanorc
+.config/netbeans/ .netbeans
+.config/ssh/ .ssh #
+.config/subversion/ .subversion
+.config/wmii/ .wmii
+
+.config .kde/share/apps
+.config .kde/share/config
+
+.kde .kde4
+.mozilla .conkeror.mozdev.org
diff --git a/.config/symlinks.sh b/.config/symlinks.sh
new file mode 100755
index 0000000..a3db6ae
--- /dev/null
+++ b/.config/symlinks.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+sed -e '/^\s*$/d' -e '/#/d' symlinks | while read _path _link; do
+ path="$(sed -rn 's|[^/]+/|../|g;s|/[^/]+$|/|p' <<<"$_link")${_path}"
+ link="$HOME/$_link"
+ if [[ -L "$link" ]]; then
+ rm -f "$link"
+ fi
+ if [[ -e "$link" ]]; then
+ echo "ERROR: file exists: $link" >> /dev/stderr
+ else
+ mkdir -p "${link%/*}"
+ ln -s "$path" "$link"
+ fi
+done
diff --git a/.conkeror.mozdev.org b/.conkeror.mozdev.org
index 49c36a2..729efd7 120000
--- a/.conkeror.mozdev.org
+++ b/.conkeror.mozdev.org
@@ -1 +1 @@
-.mozilla/ \ No newline at end of file
+.mozilla \ No newline at end of file
diff --git a/.emacs.d b/.emacs.d
index 294c1df..d45c316 120000
--- a/.emacs.d
+++ b/.emacs.d
@@ -1 +1 @@
-.config/emacs \ No newline at end of file
+.config/emacs/ \ No newline at end of file
diff --git a/.gimp-2.6 b/.gimp-2.6
new file mode 120000
index 0000000..bc9fb52
--- /dev/null
+++ b/.gimp-2.6
@@ -0,0 +1 @@
+.config/gimp-2.6/ \ No newline at end of file
diff --git a/.gimp-2.8 b/.gimp-2.8
new file mode 120000
index 0000000..fd36916
--- /dev/null
+++ b/.gimp-2.8
@@ -0,0 +1 @@
+.config/gimp-2.8/ \ No newline at end of file
diff --git a/.kde b/.kde
deleted file mode 120000
index e604d30..0000000
--- a/.kde
+++ /dev/null
@@ -1 +0,0 @@
-.kde4 \ No newline at end of file
diff --git a/.kde4/share/apps b/.kde/share/apps
index 7f8f949..7f8f949 120000
--- a/.kde4/share/apps
+++ b/.kde/share/apps
diff --git a/.kde4/share/config b/.kde/share/config
index 7f8f949..7f8f949 120000
--- a/.kde4/share/config
+++ b/.kde/share/config
diff --git a/.kde4 b/.kde4
new file mode 120000
index 0000000..bdb1556
--- /dev/null
+++ b/.kde4
@@ -0,0 +1 @@
+.kde \ No newline at end of file
diff --git a/.netbeans b/.netbeans
new file mode 120000
index 0000000..3ca44ab
--- /dev/null
+++ b/.netbeans
@@ -0,0 +1 @@
+.config/netbeans/ \ No newline at end of file
diff --git a/.subversion b/.subversion
new file mode 120000
index 0000000..4e66627
--- /dev/null
+++ b/.subversion
@@ -0,0 +1 @@
+.config/subversion/ \ No newline at end of file
diff --git a/.wmii b/.wmii
index e291b06..4d13294 120000
--- a/.wmii
+++ b/.wmii
@@ -1 +1 @@
-.config/wmii \ No newline at end of file
+.config/wmii/ \ No newline at end of file