cat >> ~/.gitconfig << \TEND

[user]
name = Niels Elgaard Larsen
email = emailadresseHer

[alias]
st = status
ci = commit

[color]
branch = true
diff = true
grep = true
interactive = true
status = auto

[apply]
ignorewhitespace = change

TEND

cat >> ~/.bashrc <<EOF
export VISUAL="emacs -nw"
alias dus='/usr/bin/du -s * .??* |sort -n'
HISTSIZE=1000
HISTFILESIZE=2000
ISTCONTROL=ignoredups:ignorespace
shopt -s histappend
alias ll='ls -alF'
alias e="emacs -nw"
export LESS="-QR"
set bell-style visible

EOF

cat >> ~/.bashrc <<EOF
# Enable 8bit input
set meta-flag on
set input-meta on
set bell-style none

# Turns off 8th bit stripping
set convert-meta off
# Keep the 8th bit for display
set output-meta on
# Will display all alternatives for completion after one tab keypress
set show-all-if-ambiguous On

"\e[5~": history-search-backward
"\e[6~": history-search-forward 
EOF


		        

echo <<EOF
javascript:(function(){window.scrollBy(1,0);i=0;while(++i<200&&window.pageXOffset>0&&window.outerWidth<window.screen.width){window.innerWidth+=10;window.scrollBy(1,0);}})();
EOF


cat > ~/.Xmodmap <<EOF
clear Lock
keycode 66 = Control_L
add Control = Control_L
EOF

cat >> /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">

<!--
Policy definitions for ConsoleKit
-->

<policyconfig>

  <action id="org.freedesktop.consolekit.system.stop">
    <description>Stop the system</description>
    <message>System policy prevents stopping the system</message>
    <defaults>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
      <allow_any>yes</allow_any>
    </defaults>
  </action>

  <action id="org.freedesktop.consolekit.system.stop-multiple-users">
    <description>Stop the system when multiple users are logged in</description>
    <message>System policy prevents stopping the system when other users are logged in</message>
    <defaults>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
      <allow_any>yes</allow_any>
    </defaults>
  </action>

  <action id="org.freedesktop.consolekit.system.restart">
    <description>Restart the system</description>
    <message>System policy prevents restarting the system</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.consolekit.system.restart-multiple-users">
    <description>Restart the system when multiple users are logged in</description>
    <message>System policy prevents restarting the system when other users are logged in</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>
EOF