X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=3c3e73c885ab8e19964da793eb9b9972f99591a7;hb=bb017de265f3055538dd42d3047beebc69a193e7;hp=9e161bde0d519ac5cf614a52de902444cb67d144;hpb=cb02687091d8be1eeed80e4ffd57f0a0c737fdf1;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 9e161bd..3c3e73c 100755 --- a/setup.sh +++ b/setup.sh @@ -13,8 +13,10 @@ if installed X; then # Use settings for XTerm also for UXTerm. This prevents code duplication. generate awk Xdefaults \ '{ print ; if ( /^XTerm/ ) { print "U" $0 } }' - # Xdefaults uses ! as comment instead of #. - sed -i 's/^#/!/' Xdefaults + # Xdefaults uses ! as comment instead of #. tmp file necessary because of + # different implementations of `sed -i`. + sed 's/^#/!/' Xdefaults > Xdefaults.tmp + mv Xdefaults.tmp Xdefaults link xinitrc ~/.xinitrc link xmodmaprc ~/.xmodmaprc