diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-01-27 16:10:40 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-01-27 17:33:30 -0500 |
commit | f50997ce8bacd444a646c9d62df6847ea6fbe3f1 (patch) | |
tree | 13f849100f9ac28216f3b6406fa5896371f56965 | |
parent | 6a928ec93da30723f950a302cfdd6b3cf3f360d5 (diff) |
Create a system for adding symlinks to .config
l--------- | .arduino | 2 | ||||
l--------- | .bazaar | 2 | ||||
-rw-r--r-- | .config/symlinks | 30 | ||||
-rwxr-xr-x | .config/symlinks.sh | 15 | ||||
l--------- | .conkeror.mozdev.org | 2 | ||||
l--------- | .emacs.d | 2 | ||||
l--------- | .gimp-2.6 | 1 | ||||
l--------- | .gimp-2.8 | 1 | ||||
l--------- | .kde | 1 | ||||
l--------- | .kde/share/apps (renamed from .kde4/share/apps) | 0 | ||||
l--------- | .kde/share/config (renamed from .kde4/share/config) | 0 | ||||
l--------- | .kde4 | 1 | ||||
l--------- | .netbeans | 1 | ||||
l--------- | .subversion | 1 | ||||
l--------- | .wmii | 2 |
15 files changed, 55 insertions, 6 deletions
@@ -1 +1 @@ -.config/arduino
\ No newline at end of file +.config/arduino/
\ No newline at end of file @@ -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 @@ -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 @@ -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 @@ -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 @@ -1 +1 @@ -.config/wmii
\ No newline at end of file +.config/wmii/
\ No newline at end of file |