# If not running interactively, don't do anything
[[ -z "$PS1" ]] && return
-echo
-echo $PS1
-
cd ~
set -o vi
shopt -s autocd
shopt -s globstar
-# Set default programs
-export SHELL='bash'
-export EDITOR='vim'
-export VISUAL='vim'
-export PAGER='less'
-export MANPAGER='less'
-
# Set prompt
PS1='\[\033]0;${USER}@${HOSTNAME}:${PWD}\007\]' # terminal title
PS1="$PS1"'$(__git_ps1 "(%s)")' # bash function (no spaces)
PS1="$PS1"'\[\033[00m\]' # change color
PS1="$PS1"'\$ ' # prompt
+export PS1
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export HISTFILESIZE=
export HISTSIZE=
-# colored GCC warnings and errors
-export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-
-# Enable syntax-highlighting in less.
-if [[ -f /mingw64/bin/src-hilite-lesspipe.sh ]]; then
- export LESSOPEN="| /mingw64/bin/src-hilite-lesspipe.sh %s"
-elif [[ -f /usr/share/source-highlight/src-hilite-lesspipe.sh ]]; then
- export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
-fi
-export LESS=" -R "
-
# Load completion, aliases, and local
[ -f /etc/bash_completion ] && . /etc/bash_completion
#[ -f ~/.bash_completion ] && . ~/.bash_completion;
PATH="$HOME/bin:$PATH"
fi
+# Set default programs
+export SHELL='bash'
+export EDITOR='vim'
+export VISUAL='vim'
+export PAGER='less'
+export MANPAGER='less'
# Prefer US language with SI units (Danish)
export LANG="en_DK.UTF-8"
#export XDG_DATA_HOME=$HOME/.local/share/
#export XDG_DATA_DIRS=/usr/local/share/:/usr/share/
+# Enable syntax-highlighting in less.
+if [[ -f /mingw64/bin/src-hilite-lesspipe.sh ]]; then
+ export LESSOPEN="| /mingw64/bin/src-hilite-lesspipe.sh %s"
+elif [[ -f /usr/share/source-highlight/src-hilite-lesspipe.sh ]]; then
+ export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
+fi
+export LESS=" -R "
+
+# colored GCC warnings and errors
+export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
+
+