Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon May
config
Commits
6e47fe04
Commit
6e47fe04
authored
Jul 17, 2019
by
Simon May
Browse files
Move environment variables to ~/.env and add powerline
parent
1393f1d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
.bashrc
View file @
6e47fe04
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
...
...
.env
0 → 100755
View file @
6e47fe04
# 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
.profile
View file @
6e47fe04
# 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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment