Commit 6e47fe04 authored by Simon May's avatar Simon May
Browse files

Move environment variables to ~/.env and add powerline

parent 1393f1d3
export EDITOR=nano
# important environment variables must be set here since this file is loaded
# in /etc/profile, i.e. *before* ~/.profile!
. ~/.env
# setup modules
module load datashare
......@@ -37,13 +39,11 @@ shopt -s histappend
#HISTFILESIZE=8000
HISTTIMEFORMAT='%F %T '
# set PS1
case "$TERM" in
xterm-color|*-256color|screen) color_prompt=yes;;
esac
if [ "$color_prompt" = yes ]; then
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
fi
# powerline (prompt)
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. ~/.local/lib/python3.7/site-packages/powerline/bindings/bash/powerline.sh
# additional alias definitions
if [ -f ~/.alias ]; then
......
# only execute once (for login)
if [ "$_ENV_READ" ]; then
return
fi
# set umask (umask -S: u=rwx,g=,o=)
umask 077
# set PATH
PATH="$PATH:$HOME/.local/bin"
# default editor
EDITOR=nano
export EDITOR
# default options for less
# default used by git if LESS is unset: LESS='FRX'
# TODO: make -F work without -X
LESS="$LESS -I -M -R -x4"
export LESS
# set variable to mark this file as read
_ENV_READ=1
export _ENV_READ
# Note that this file is loaded *after* ~/.bashrc, which is loaded in
# /etc/profile.
# Load /etc/profile here if it hasn’t been loaded yet.
test -z "$PROFILEREAD" && . /etc/profile || true
# set PATH
PATH="$PATH:$HOME/.local/bin"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment