diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/symlinks | 30 | ||||
-rwxr-xr-x | .config/symlinks.sh | 15 |
2 files changed, 45 insertions, 0 deletions
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 |