Kevin H преди 11 години
ревизия
1f434bfda0

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+zsh-ownrc
+powerline-fonts/

+ 8 - 0
DefaultKeyBinding.dict

@@ -0,0 +1,8 @@
+// cp/ln -s this file into "~/Library/KeyBindings/"
+// short doc here:
+// http://www.hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html
+{
+    "~a" = (insertText:, "α");
+    "~b" = (insertText:, "β");
+    "~g" = (insertText:, "γ");
+}

+ 146 - 0
Tomorrow Night.dvtcolortheme

@@ -0,0 +1,146 @@
+<!--
+     XCode color scheme... 
+     Just insert into ~/Library/Developer/Xcode/UserData/FontAndColorThemes/ 
+-->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>DVTConsoleDebuggerInputTextColor</key>
+	<string>0.770437 0.783913 0.778299 1</string>
+	<key>DVTConsoleDebuggerInputTextFont</key>
+	<string>Menlo-Bold - 12.0</string>
+	<key>DVTConsoleDebuggerOutputTextColor</key>
+	<string>0.770437 0.783913 0.778299 1</string>
+	<key>DVTConsoleDebuggerOutputTextFont</key>
+	<string>Menlo-Bold - 12.0</string>
+	<key>DVTConsoleDebuggerPromptTextColor</key>
+	<string>0.506524 0.633807 0.747343 1</string>
+	<key>DVTConsoleDebuggerPromptTextFont</key>
+	<string>Menlo-Bold - 12.0</string>
+	<key>DVTConsoleExectuableInputTextColor</key>
+	<string>0.770437 0.783913 0.778299 1</string>
+	<key>DVTConsoleExectuableInputTextFont</key>
+	<string>Menlo-Bold - 12.0</string>
+	<key>DVTConsoleExectuableOutputTextColor</key>
+	<string>0.770437 0.783913 0.778299 1</string>
+	<key>DVTConsoleExectuableOutputTextFont</key>
+	<string>Menlo-Bold - 12.0</string>
+	<key>DVTConsoleTextBackgroundColor</key>
+	<string>0.112404 0.120126 0.130254 1</string>
+	<key>DVTConsoleTextInsertionPointColor</key>
+	<string>0.770437 0.783913 0.778299 1</string>
+	<key>DVTConsoleTextSelectionColor</key>
+	<string>0.216386 0.231364 0.2553 1</string>
+	<key>DVTDebuggerInstructionPointerColor</key>
+	<string>0.708155 0.741288 0.405974 1</string>
+	<key>DVTSourceTextBackground</key>
+	<string>0.112404 0.120126 0.130254 1</string>
+	<key>DVTSourceTextBlockDimBackgroundColor</key>
+	<string>0.5 0.5 0.5 1</string>
+	<key>DVTSourceTextInsertionPointColor</key>
+	<string>0.770437 0.783913 0.778299 1</string>
+	<key>DVTSourceTextInvisiblesColor</key>
+	<string>0.293494 0.306201 0.33183 1</string>
+	<key>DVTSourceTextSelectionColor</key>
+	<string>0.216386 0.231364 0.2553 1</string>
+	<key>DVTSourceTextSyntaxColors</key>
+	<dict>
+		<key>xcode.syntax.attribute</key>
+		<string>0.868731 0.575814 0.373674 1</string>
+		<key>xcode.syntax.character</key>
+		<string>0.868731 0.575814 0.373674 1</string>
+		<key>xcode.syntax.comment</key>
+		<string>0.589928 0.594322 0.589154 1</string>
+		<key>xcode.syntax.comment.doc</key>
+		<string>0.589928 0.594322 0.589154 1</string>
+		<key>xcode.syntax.comment.doc.keyword</key>
+		<string>0.696639 0.58008 0.734811 1</string>
+		<key>xcode.syntax.identifier.class</key>
+		<string>0.939447 0.774972 0.455114 1</string>
+		<key>xcode.syntax.identifier.class.system</key>
+		<string>0.939447 0.774972 0.455114 1</string>
+		<key>xcode.syntax.identifier.constant</key>
+		<string>0.770437 0.783913 0.778299 1</string>
+		<key>xcode.syntax.identifier.constant.system</key>
+		<string>0.770437 0.783913 0.778299 1</string>
+		<key>xcode.syntax.identifier.function</key>
+		<string>0.939447 0.774972 0.455114 1</string>
+		<key>xcode.syntax.identifier.function.system</key>
+		<string>0.506524 0.633807 0.747343 1</string>
+		<key>xcode.syntax.identifier.macro</key>
+		<string>0.550924 0.745364 0.717924 1</string>
+		<key>xcode.syntax.identifier.macro.system</key>
+		<string>0.550924 0.745364 0.717924 1</string>
+		<key>xcode.syntax.identifier.type</key>
+		<string>0.801655 0.399344 0.401992 1</string>
+		<key>xcode.syntax.identifier.type.system</key>
+		<string>0.868731 0.575814 0.373674 1</string>
+		<key>xcode.syntax.identifier.variable</key>
+		<string>0.801655 0.399344 0.401992 1</string>
+		<key>xcode.syntax.identifier.variable.system</key>
+		<string>0.801655 0.399344 0.401992 1</string>
+		<key>xcode.syntax.keyword</key>
+		<string>0.696639 0.58008 0.734811 1</string>
+		<key>xcode.syntax.number</key>
+		<string>0.868731 0.575814 0.373674 1</string>
+		<key>xcode.syntax.plain</key>
+		<string>0.770437 0.783913 0.778299 1</string>
+		<key>xcode.syntax.preprocessor</key>
+		<string>0.801655 0.399344 0.401992 1</string>
+		<key>xcode.syntax.string</key>
+		<string>0.708155 0.741288 0.405974 1</string>
+		<key>xcode.syntax.url</key>
+		<string>0.506524 0.633807 0.747343 1</string>
+	</dict>
+	<key>DVTSourceTextSyntaxFonts</key>
+	<dict>
+		<key>xcode.syntax.attribute</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.character</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.comment</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.comment.doc</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.comment.doc.keyword</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.class</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.class.system</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.constant</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.constant.system</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.function</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.function.system</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.macro</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.macro.system</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.type</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.type.system</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.variable</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.identifier.variable.system</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.keyword</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.number</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.plain</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.preprocessor</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.string</key>
+		<string>Menlo-Regular - 12.0</string>
+		<key>xcode.syntax.url</key>
+		<string>Menlo-Regular - 12.0</string>
+	</dict>
+</dict>
+</plist>

+ 213 - 0
Tomorrow-Night.itermcolors

@@ -0,0 +1,213 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>Ansi 0 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.0</real>
+		<key>Green Component</key>
+		<real>0.0</real>
+		<key>Red Component</key>
+		<real>0.0</real>
+	</dict>
+	<key>Ansi 1 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.40000000000000002</real>
+		<key>Green Component</key>
+		<real>0.40000000000000002</real>
+		<key>Red Component</key>
+		<real>0.80000000000000004</real>
+	</dict>
+	<key>Ansi 10 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.40784313729999999</real>
+		<key>Green Component</key>
+		<real>0.74117647060000003</real>
+		<key>Red Component</key>
+		<real>0.70980392160000005</real>
+	</dict>
+	<key>Ansi 11 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.4549019608</real>
+		<key>Green Component</key>
+		<real>0.77647058820000003</real>
+		<key>Red Component</key>
+		<real>0.94117647059999998</real>
+	</dict>
+	<key>Ansi 12 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.74509803919999995</real>
+		<key>Green Component</key>
+		<real>0.63529411759999999</real>
+		<key>Red Component</key>
+		<real>0.50588235290000005</real>
+	</dict>
+	<key>Ansi 13 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.73333333329999995</real>
+		<key>Green Component</key>
+		<real>0.58039215690000001</real>
+		<key>Red Component</key>
+		<real>0.69803921570000005</real>
+	</dict>
+	<key>Ansi 14 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.71764705880000002</real>
+		<key>Green Component</key>
+		<real>0.74509803919999995</real>
+		<key>Red Component</key>
+		<real>0.54117647059999996</real>
+	</dict>
+	<key>Ansi 15 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.99999129772186279</real>
+		<key>Green Component</key>
+		<real>0.99997437000274658</real>
+		<key>Red Component</key>
+		<real>1</real>
+	</dict>
+	<key>Ansi 2 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.40784313725490196</real>
+		<key>Green Component</key>
+		<real>0.74117647058823533</real>
+		<key>Red Component</key>
+		<real>0.70980392156862748</real>
+	</dict>
+	<key>Ansi 3 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.45490196078431372</real>
+		<key>Green Component</key>
+		<real>0.77647058823529413</real>
+		<key>Red Component</key>
+		<real>0.94117647058823528</real>
+	</dict>
+	<key>Ansi 4 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.74509803921568629</real>
+		<key>Green Component</key>
+		<real>0.63529411764705879</real>
+		<key>Red Component</key>
+		<real>0.50588235294117645</real>
+	</dict>
+	<key>Ansi 5 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.73333333333333328</real>
+		<key>Green Component</key>
+		<real>0.58039215686274503</real>
+		<key>Red Component</key>
+		<real>0.69803921568627447</real>
+	</dict>
+	<key>Ansi 6 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.71764705882352942</real>
+		<key>Green Component</key>
+		<real>0.74509803921568629</real>
+		<key>Red Component</key>
+		<real>0.54117647058823526</real>
+	</dict>
+	<key>Ansi 7 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.99999129772186279</real>
+		<key>Green Component</key>
+		<real>0.99997437000274658</real>
+		<key>Red Component</key>
+		<real>1</real>
+	</dict>
+	<key>Ansi 8 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.0</real>
+		<key>Green Component</key>
+		<real>0.0</real>
+		<key>Red Component</key>
+		<real>0.0</real>
+	</dict>
+	<key>Ansi 9 Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.40000000000000002</real>
+		<key>Green Component</key>
+		<real>0.40000000000000002</real>
+		<key>Red Component</key>
+		<real>0.80000000000000004</real>
+	</dict>
+	<key>Background Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.12941177189350128</real>
+		<key>Green Component</key>
+		<real>0.12156862765550613</real>
+		<key>Red Component</key>
+		<real>0.11372549086809158</real>
+	</dict>
+	<key>Bold Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.77647058820000003</real>
+		<key>Green Component</key>
+		<real>0.7843137255</real>
+		<key>Red Component</key>
+		<real>0.7725490196</real>
+	</dict>
+	<key>Cursor Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.77647058820000003</real>
+		<key>Green Component</key>
+		<real>0.7843137255</real>
+		<key>Red Component</key>
+		<real>0.7725490196</real>
+	</dict>
+	<key>Cursor Text Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.12941177189350128</real>
+		<key>Green Component</key>
+		<real>0.12156862765550613</real>
+		<key>Red Component</key>
+		<real>0.11372549086809158</real>
+	</dict>
+	<key>Foreground Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.77647058823529413</real>
+		<key>Green Component</key>
+		<real>0.78431372549019607</real>
+		<key>Red Component</key>
+		<real>0.77254901960784317</real>
+	</dict>
+	<key>Selected Text Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.77647058820000003</real>
+		<key>Green Component</key>
+		<real>0.7843137255</real>
+		<key>Red Component</key>
+		<real>0.7725490196</real>
+	</dict>
+	<key>Selection Color</key>
+	<dict>
+		<key>Blue Component</key>
+		<real>0.25490196078431371</real>
+		<key>Green Component</key>
+		<real>0.23137254901960785</real>
+		<key>Red Component</key>
+		<real>0.21568627450980393</real>
+	</dict>
+</dict>
+</plist>

+ 62 - 0
bash_profile

@@ -0,0 +1,62 @@
+# activate colors
+export CLICOLOR=1
+
+### ALIASES ###
+# list directory in human readable (-h), listed (-l) way. Show all files (-a).
+# -F: display an indicator for special list entries (folder, links, etc...)
+# pipe it to less for scrolling
+alias ll='ls -Fhla | less -R'
+
+# change into current semester
+alias sem='cd ~/Documents/Studium/.currentSemester'
+# connect to pihalbe@uberspace shell
+alias uber='ssh pihalbe@octans.uberspace.de'
+# run python3
+alias py='python3.3'
+alias ipy='ipython3-3.3'
+# python2
+alias py2='python2.7'
+alias ipy2='ipython-2.7'
+# use consolemode MacVim
+alias vim='mvim -v'
+
+### e5-specific ###
+alias me5='sshfs lhcb: ~/mount/e5 && cd ~/mount/e5'
+
+# cool extract function
+function extract()
+{
+    if [ -f $1 ]; then
+        case $1 in
+            *.tar.bz2)  tar xvjf $1 ;;
+            *.tar.gz)   tar xvzf $1 ;;
+            *.tar)      tar xvf $1  ;;
+            *.zip)      unzip $1    ;;
+            *)          echo "'$1' cannot be extracted via extract()";;
+        esac
+    else
+        echo "'$1' is not a valid file!"
+    fi
+}
+
+# let me find ROOT maagic
+# (This will perfom some magic to define ROOT paths and stuff)
+if [ -d "/opt/ROOT/" ]; then
+    source /opt/ROOT/5.34.18/bin/thisroot.sh
+else
+    if [ -f "/opt/local/bin/root" ]; then
+        source /opt/local/bin/thisroot.sh
+    fi
+fi
+
+# let me find the postgresql executables
+export PATH=/opt/local/lib/postgresql93/bin:$PATH
+
+##
+# Your previous /Users/greenapple/.bash_profile file was backed up as /Users/greenapple/.bash_profile.macports-saved_2014-03-07_at_15:37:47
+##
+
+# MacPorts Installer addition on 2014-03-07_at_15:37:47: adding an appropriate PATH variable for use with MacPorts.
+export PATH=/opt/local/bin:/opt/local/sbin:$PATH
+# Finished adapting your PATH environment variable for use with MacPorts.
+

+ 9 - 0
sublime-snippets/LaTeX/SI.sublime-snippet

@@ -0,0 +1,9 @@
+<snippet>
+    <content><![CDATA[
+\SI{${1:1}}{${2:u}}
+]]></content>
+    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+    <tabTrigger>SI</tabTrigger>
+    <!-- Optional: Set a scope to limit where the snippet will trigger -->
+    <!-- <scope>source.python</scope> -->
+</snippet>

+ 16 - 0
sublime-snippets/LaTeX/fig.sublime-snippet

@@ -0,0 +1,16 @@
+<snippet>
+    <content><![CDATA[
+\begin{figure}[h]
+    \centering
+    \includegraphics[width=${1:0.5}\linewidth]{img/${2:foo}.${3:jpeg}}
+    \caption{
+        ${4:Schönes Bildchen}
+    }
+    \label{fig:${2:foo}}
+\end{figure}
+]]></content>
+    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+    <tabTrigger>fig</tabTrigger>
+    <!-- Optional: Set a scope to limit where the snippet will trigger -->
+    <!-- <scope>source.python</scope> -->
+</snippet>

+ 9 - 0
sublime-snippets/LaTeX/frac.sublime-snippet

@@ -0,0 +1,9 @@
+<snippet>
+    <content><![CDATA[
+\frac{${1}}{${2}}
+]]></content>
+    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+    <tabTrigger>frac</tabTrigger>
+    <!-- Optional: Set a scope to limit where the snippet will trigger -->
+    <!-- <scope>source.python</scope> -->
+</snippet>

+ 9 - 0
sublime-snippets/LaTeX/lr.sublime-snippet

@@ -0,0 +1,9 @@
+<snippet>
+    <content><![CDATA[
+\left${1:(}$3\right${2:)}
+]]></content>
+    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+    <tabTrigger>lr</tabTrigger>
+    <!-- Optional: Set a scope to limit where the snippet will trigger -->
+    <!-- <scope>source.python</scope> -->
+</snippet>

+ 22 - 0
sublime-snippets/LaTeX/tab.sublime-snippet

@@ -0,0 +1,22 @@
+<snippet>
+    <content><![CDATA[
+\begin{table}
+    \centering
+    \caption{
+        ${1}
+    }
+    \label{tab:${2}}
+    \begin{tabular}{${3:ccc}}
+        \toprule
+        ${4:HEAD} \\\\
+        \midrule
+        ${5:BODY} \\\\
+        \bottomrule
+    \end{tabular}
+\end{table}
+]]></content>
+    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+    <tabTrigger>tab</tabTrigger>
+    <!-- Optional: Set a scope to limit where the snippet will trigger -->
+    <!-- <scope>source.python</scope> -->
+</snippet>

+ 38 - 0
sublime-text-settings/Preferences.sublime-settings

@@ -0,0 +1,38 @@
+{
+    "color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Bright.tmTheme",
+    "ensure_newline_at_eof_on_save": true,
+    "file_exclude_patterns":
+    [
+        ".DS_Store",
+        "*.pid",
+        "*.pyc"
+    ],
+    "find_selected_text": true,
+    "folder_exclude_patterns":
+    [
+        ".git",
+        "__pycache__",
+        "env",
+        "env3"
+    ],
+    "font_face": "Meslo LG S for Powerline",
+    "font_size": 13,
+    "highlight_modified_tabs": true,
+    "ignored_packages":
+    [
+        "Pylinter",
+        "Jedi - Python autocompletion"
+    ],
+    "rulers":
+    [
+        72,
+        79
+    ],
+    "scroll_past_end": false,
+    "tab_size": 4,
+    "translate_tabs_to_spaces": true,
+    "trim_trailing_white_space_on_save": true,
+    "wide_caret": true,
+    "word_wrap": true,
+    "wrap_width": 80
+}

+ 10 - 0
vim-snippets/cpp.snippets

@@ -0,0 +1,10 @@
+## functions
+# main
+snippet main
+	int main(int argc, char* argv[]){
+	  ${1}
+	  return 0;
+	}
+# std::cout
+snippet cout
+	std::cout << ${1} << std::endl;

+ 67 - 0
vim-snippets/tex.snippets

@@ -0,0 +1,67 @@
+## common
+# Section
+snippet sec
+	\section{${1}}
+# Figure
+snippet fig
+	\begin{figure}
+		${0}
+	\end{figure}
+# Environment
+snippet be
+	\begin{${1:env}}
+		${0}
+	\end{$1}
+# Equation
+snippet eq
+	\begin{equation}
+	\label{eq:${2}}
+			${0}
+	\end{equation}
+# Equation
+snippet eq*
+	\begin{equation*}
+		${0}
+	\end{equation*}
+# Equation array
+snippet eqnarray
+	\begin{eqnarray}
+		${0}
+	\end{eqnarray}
+# Fraction
+snippet frac
+	\frac{${1}}{${2}}${0}
+# ()
+snippet ()
+	\left( ${0} \right)
+# []
+snippet []
+	\left[ ${0} \right]
+# Label
+snippet lab
+	\label{${1}}
+# Itemize
+snippet itemize
+	\begin{itemize}
+		\item ${0}
+	\end{itemize}
+# Endless new item
+snippet item
+	\item ${1}
+	item
+# electronvolt per c squared
+snippet evc
+	\electronvolt \per \clight \squared
+# siunitx maaan
+snippet si
+	\SI{${1}}{${2}}
+snippet ss
+	\si{${1}}
+snippet n
+	\num{${1}}
+## beamer
+# frame
+snippet frame
+	\begin{frame}{${1:frametitle}}
+		${0}
+	\end{frame}

+ 122 - 0
vimrc

@@ -0,0 +1,122 @@
+execute pathogen#infect()
+
+"set right encoding
+set encoding=utf-8
+set fileencoding=utf-8
+
+"use jk for Escape
+inoremap jk <ESC>
+
+map j gj
+map k gk
+
+"lajdflasldflsajflasdlfjslajfsjremap mapleader / to , this vim stuff ist really not thaaaat comfortable if
+"you are not used to it O.o
+let mapleader = ","
+
+"execute current file
+nnoremap <leader>e :!%:p<Enter>
+
+"open Nerdtree with CTRL+n
+map <C-n> :NERDTreeToggle<CR>
+
+"open Tagbar with CTRL+m
+map <C-m> :TagbarToggle<CR>
+
+" trigger snipmate
+imap kj <Plug>snipMateNextOrTrigger
+
+"configure for guivim if its active
+if has("gui_macvim")
+    set guifont=Meslo\ LG\ S\ for\ Powerline:h13
+endif
+
+"Set auto inline on
+set ai
+
+"Show line numbers
+set number
+
+"Set syntax highlighting on
+syntax on
+
+" Spaces instead of Tabs
+" Use 4 Spaces as default and 2 Spaces for cpp files
+if expand("%:e")=="cpp"
+    set tabstop=2
+    set shiftwidth=2
+else
+    set tabstop=4
+    set shiftwidth=4
+endif
+
+set expandtab
+
+filetype off       "Required for vundle
+set rtp+=~/.vim/bundle/vundle/
+call vundle#rc()
+
+" Let Vundle manage Vundle (required)
+Bundle 'gmarik/vundle'
+
+" Own bundles
+" Only use YCM if macvim is available. YCM is incompatible with vim version <
+" 7.3...
+"if has("gui_macvim")
+"    Bundle 'Valloric/YouCompleteMe'
+"endif
+Bundle 'tpope/vim-pathogen'
+Bundle 'davidhalter/jedi-vim'
+"Bundle 'klen/python-mode'
+Bundle 'majutsushi/tagbar'
+Bundle 'scrooloose/nerdtree'
+"Bundle 'lervag/vim-latex'
+Bundle 'tpope/vim-fugitive'
+Bundle 'airblade/vim-gitgutter'
+" Define runtime-path (rtp) if there is no explicit repo for vim
+Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
+Bundle 'altercation/vim-colors-solarized'
+Bundle 'bling/vim-airline'
+" all three following plugins are needed for vim-snipmate
+Bundle "MarcWeber/vim-addon-mw-utils"
+Bundle "tomtom/tlib_vim"
+Bundle "garbas/vim-snipmate"
+
+filetype plugin indent on       " required for vundle
+
+"Tomorrow color scheme
+colo Tomorrow-Night-Eighties
+"if has("gui_macvim")
+"    set transparency=10
+"endif
+
+" Close tip-window when selection is done or leaving insert mode
+autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
+autocmd InsertLeave * if pumvisible() == 0|pclose|endif
+
+" YCM Configuration
+" dont use python-mode autocomplete obsolete now, because of YCM
+let g:pymode_rope = 0
+" only use ycm for python code
+let g:ycm_filetype_whitelist = {'cpp': 1}
+" set ycm_extra_conf
+let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
+" turn off the ycm diagnostic because of struggling with root
+"let g:ycm_show_diagnostics_ui = 0
+
+" NERDTree Configuration
+" hide some fileextenxions
+let NERDTreeIgnore = ['\.pyc$']
+
+" Airline stuff
+set laststatus=2
+let g:airline_powerline_fonts = 1
+let g:airline#extensions#tabline#enabled = 1
+let g:airline#extensions#tabline#buffer_nr_show = 1
+
+" allways show tagbar
+"autocmd VimEnter * nested :call tagbar#autoopen(1)
+"let g:tagbar_autoclose = 0
+
+" activate mouse support
+set mouse=a

+ 203 - 0
ycm_extra_conf.py

@@ -0,0 +1,203 @@
+# This file is NOT licensed under the GPLv3, which is the license for the rest
+# of YouCompleteMe.
+#
+# Here's the license text for this file:
+#
+# This is free and unencumbered software released into the public domain.
+#
+# Anyone is free to copy, modify, publish, use, compile, sell, or
+# distribute this software, either in source code form or as a compiled
+# binary, for any purpose, commercial or non-commercial, and by any
+# means.
+#
+# In jurisdictions that recognize copyright laws, the author or authors
+# of this software dedicate any and all copyright interest in the
+# software to the public domain. We make this dedication for the benefit
+# of the public at large and to the detriment of our heirs and
+# successors. We intend this dedication to be an overt act of
+# relinquishment in perpetuity of all present and future rights to this
+# software under copyright law.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+#
+# For more information, please refer to <http://unlicense.org/>
+
+import os
+import ycm_core
+
+# These are the compilation flags that will be used in case there's no
+# compilation database set (by default, one is not set).
+# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
+flags = [
+'-Wall',
+'-Wextra',
+'-Werror',
+'-Wc++98-compat',
+'-Wno-long-long',
+'-Wno-variadic-macros',
+'-fexceptions',
+'-DNDEBUG',
+# You 100% do NOT need -DUSE_CLANG_COMPLETER in your flags; only the YCM
+# source code needs it.
+'-DUSE_CLANG_COMPLETER',
+# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
+# language to use when compiling headers. So it will guess. Badly. So C++
+# headers will be compiled as C headers. You don't want that so ALWAYS specify
+# a "-std=<something>".
+# For a C project, you would set this to something like 'c99' instead of
+# 'c++11'.
+'-std=c++11',
+# ...and the same thing goes for the magic -x option which specifies the
+# language that the files to be compiled are written in. This is mostly
+# relevant for c++ headers.
+# For a C project, you would set this to 'c' instead of 'c++'.
+'-x',
+'c++',
+'-isystem',
+'../BoostParts',
+'-isystem',
+# This path will only work on OS X, but extra paths that don't exist are not
+# harmful
+'/System/Library/Frameworks/Python.framework/Headers',
+# This path points to the pip installed python frameworks
+'-isystem',
+'/opt/local/Library/Frameworks/Python.framework/Headers',
+'-isystem',
+'../llvm/include',
+'-isystem',
+'../llvm/tools/clang/include',
+'-I',
+'.',
+'-I',
+'./ClangCompleter',
+'-isystem',
+'./tests/gmock/gtest',
+'-isystem',
+'./tests/gmock/gtest/include',
+'-isystem',
+'./tests/gmock',
+'-isystem',
+'./tests/gmock/include',
+'-isystem',
+'/usr/include',
+'-isystem',
+'/usr/local/include',
+'-isystem',
+'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1',
+'-isystem',
+'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include',
+# This path holds the root headers, as mentioned above, it es not harmful if
+# the path doesn't exist
+'-I',
+'/opt/local/include/root',
+'-I',
+'/opt/ROOT/5.34.18/include/root',
+'-isystem',
+'/opt/ROOT/5.34.18/include/root',
+]
+
+
+# Set this to the absolute path to the folder (NOT the file!) containing the
+# compile_commands.json file to use that instead of 'flags'. See here for
+# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
+#
+# Most projects will NOT need to set this to anything; you can just change the
+# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
+compilation_database_folder = ''
+
+if os.path.exists( compilation_database_folder ):
+  database = ycm_core.CompilationDatabase( compilation_database_folder )
+else:
+  database = None
+
+SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ]
+
+def DirectoryOfThisScript():
+  return os.path.dirname( os.path.abspath( __file__ ) )
+
+
+def MakeRelativePathsInFlagsAbsolute( flags, working_directory ):
+  if not working_directory:
+    return list( flags )
+  new_flags = []
+  make_next_absolute = False
+  path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
+  for flag in flags:
+    new_flag = flag
+
+    if make_next_absolute:
+      make_next_absolute = False
+      if not flag.startswith( '/' ):
+        new_flag = os.path.join( working_directory, flag )
+
+    for path_flag in path_flags:
+      if flag == path_flag:
+        make_next_absolute = True
+        break
+
+      if flag.startswith( path_flag ):
+        path = flag[ len( path_flag ): ]
+        new_flag = path_flag + os.path.join( working_directory, path )
+        break
+
+    if new_flag:
+      new_flags.append( new_flag )
+  return new_flags
+
+
+def IsHeaderFile( filename ):
+  extension = os.path.splitext( filename )[ 1 ]
+  return extension in [ '.h', '.hxx', '.hpp', '.hh' ]
+
+
+def GetCompilationInfoForFile( filename ):
+  # The compilation_commands.json file generated by CMake does not have entries
+  # for header files. So we do our best by asking the db for flags for a
+  # corresponding source file, if any. If one exists, the flags for that file
+  # should be good enough.
+  if IsHeaderFile( filename ):
+    basename = os.path.splitext( filename )[ 0 ]
+    for extension in SOURCE_EXTENSIONS:
+      replacement_file = basename + extension
+      if os.path.exists( replacement_file ):
+        compilation_info = database.GetCompilationInfoForFile(
+          replacement_file )
+        if compilation_info.compiler_flags_:
+          return compilation_info
+    return None
+  return database.GetCompilationInfoForFile( filename )
+
+
+def FlagsForFile( filename, **kwargs ):
+  if database:
+    # Bear in mind that compilation_info.compiler_flags_ does NOT return a
+    # python list, but a "list-like" StringVec object
+    compilation_info = GetCompilationInfoForFile( filename )
+    if not compilation_info:
+      return None
+
+    final_flags = MakeRelativePathsInFlagsAbsolute(
+      compilation_info.compiler_flags_,
+      compilation_info.compiler_working_dir_ )
+
+    # NOTE: This is just for YouCompleteMe; it's highly likely that your project
+    # does NOT need to remove the stdlib flag. DO NOT USE THIS IN YOUR
+    # ycm_extra_conf IF YOU'RE NOT 100% SURE YOU NEED IT.
+    try:
+      final_flags.remove( '-stdlib=libc++' )
+    except ValueError:
+      pass
+  else:
+    relative_to = DirectoryOfThisScript()
+    final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
+
+  return {
+    'flags': final_flags,
+    'do_cache': True
+  }

+ 92 - 0
zshrc

@@ -0,0 +1,92 @@
+### O H - M Y - Z S H  C O N F I G ###
+
+## Path to your oh-my-zsh installation.
+export ZSH=~/.oh-my-zsh
+
+# Set name of the theme to load.
+# Look in ~/.oh-my-zsh/themes/
+# Optionally, if you set this to "random", it'll load a random theme each
+# time that oh-my-zsh is loaded.
+ZSH_THEME="agnoster"
+
+plugins=(git pass macports)
+
+source $ZSH/oh-my-zsh.sh
+
+### U S E R  C O N F I G ###
+
+# Device-specifig setup (ignored by git)
+source .zsh-ownrc
+
+### ALIASES ###
+# list directory in human readable (-h), listed (-l) way. Show all files (-a).
+# -F: display an indicator for special list entries (folder, links, etc...)
+alias ll='ls -Fhla | less -R'
+alias l='ls -lha'
+
+# gdb with macports
+alias gdb='ggdb'
+# git aliases
+alias gits='git status -s'
+# setup ROOT-PATH for python
+alias SetupPyROOT='
+export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH&&
+export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH'
+
+### e5-specific ###
+alias me5='sshfs lhcb: ~/mount/e5 && cd ~/mount/e5'
+
+### RasPi-Stuff
+#alias dhcpon='sudo /bin/launchctl load -w /System/Library/LaunchDaemons/bootps.plist&&sudo ipconfig set en0 MANUAL 192.168.33.1 255.255.255.0&&echo "DHCP-Server startet for 192.168.33.1"'
+#alias dhcpoff='sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/bootps.plist&&sudo ipconfig set en0 DHCP&&echo "DHCP-Server shut down"'
+#alias couchdb='ssh pi@192.168.33.2 -N -L 9000:localhost:5984'
+
+### Users PATHs ###
+# Uni
+export STUD=~/Documents/Studium/
+export SEM=~/Documents/Studium/2014\ Wintersemester/
+export FP=~/Documents/Studium/FP14/
+export AP=~/Documents/Studium/AP12/
+export PEP=~/Documents/Studium/pep-et-al/
+export E5=~/Documents/Studium/e5/
+
+# Work
+export WORK=~/Documents/Arbeit/
+export FH=~/Documents/Arbeit/2014/ItInvFb9/
+
+# cool extract function
+function extract()
+{
+    if [ -f $1 ]; then
+        case $1 in
+            *.tar.bz2)  tar xvjf $1 ;;
+            *.tar.gz)   tar xvzf $1 ;;
+            *.tar)      tar xvf $1  ;;
+            *.zip)      unzip $1    ;;
+            *)          echo "'$1' cannot be extracted via extract()";;
+        esac
+    else
+        echo "'$1' is not a valid file!"
+    fi
+}
+
+# let me find ROOT maagic
+# (This will perfom some magic to define ROOT paths and stuff)
+if [ -d "/opt/ROOT/" ]; then
+    cd /opt/ROOT/5.34.18/ && source bin/thisroot.sh && cd ~/.
+else
+    if [ -f "/opt/local/bin/root" ]; then
+       cd /opt/local/ && source bin/thisroot.sh && cd ~/.
+    fi
+fi
+
+# let me find the postgresql executables
+export PATH=/opt/local/lib/postgresql93/bin:$PATH
+
+##
+# Your previous /Users/greenapple/.bash_profile file was backed up as /Users/greenapple/.bash_profile.macports-saved_2014-03-07_at_15:37:47
+##
+
+# MacPorts Installer addition on 2014-03-07_at_15:37:47: adding an appropriate PATH variable for use with MacPorts.
+export PATH=/opt/local/bin:/opt/local/sbin:$PATH
+# Finished adapting your PATH environment variable for use with MacPorts.