Add lmod and gpaw module
vimrc: Colorcolumn in python
This commit is contained in:
17
.bashrc.kuba
17
.bashrc.kuba
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
source_existing() {
|
||||||
|
if [ -f "$1" ]; then
|
||||||
|
source "$1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
export KRB5_CONFIG=".etcfiles/krb5.conf"
|
export KRB5_CONFIG=".etcfiles/krb5.conf"
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
@@ -17,10 +24,12 @@ alias pip=pip3
|
|||||||
alias python=python3
|
alias python=python3
|
||||||
|
|
||||||
# Source git prompt
|
# Source git prompt
|
||||||
if [ -f ~/scripts/git-prompt.sh ]; then
|
source_existing ~/scripts/git-prompt.sh
|
||||||
source ~/scripts/git-prompt.sh
|
source_existing ~/.bash_prompt.kuba
|
||||||
fi
|
|
||||||
source ~/.bash_prompt.kuba
|
# Source lmod module setup
|
||||||
|
source_existing /usr/share/lmod/lmod/init/profile
|
||||||
|
[ -x "$(command -v module)" ] && module use ~/.modules.kuba/
|
||||||
|
|
||||||
if [ "$(hostname)" == "kubaDesktop" ] || [ "$(hostname)" == "kubaArch-Laptop" ]; then
|
if [ "$(hostname)" == "kubaDesktop" ] || [ "$(hostname)" == "kubaArch-Laptop" ]; then
|
||||||
GPAW_SETUP_BASE="/home/kuba/gpaw-setups/0.9.20000/"
|
GPAW_SETUP_BASE="/home/kuba/gpaw-setups/0.9.20000/"
|
||||||
|
|||||||
@@ -4,3 +4,5 @@ graphviz
|
|||||||
htop
|
htop
|
||||||
terminator
|
terminator
|
||||||
tmux
|
tmux
|
||||||
|
gnome-session
|
||||||
|
lmod
|
||||||
|
|||||||
1
.vimrc
1
.vimrc
@@ -47,6 +47,7 @@ if !exists("vimrc_autocmds_loaded")
|
|||||||
|
|
||||||
au BufRead,BufNewFile * setlocal textwidth=0 | setlocal colorcolumn=
|
au BufRead,BufNewFile * setlocal textwidth=0 | setlocal colorcolumn=
|
||||||
au BufRead,BufNewFile *.md setlocal textwidth=80 | setlocal colorcolumn=80
|
au BufRead,BufNewFile *.md setlocal textwidth=80 | setlocal colorcolumn=80
|
||||||
|
au BufRead,BufNewFile *.py setlocal colorcolumn=100
|
||||||
|
|
||||||
if exists(":NERDTree")
|
if exists(":NERDTree")
|
||||||
" Open NERDTree if no file specified
|
" Open NERDTree if no file specified
|
||||||
|
|||||||
11
git/trossi-gpaw/.modules.kuba/gpaw/stable.lua
Normal file
11
git/trossi-gpaw/.modules.kuba/gpaw/stable.lua
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
local name = myModuleName()
|
||||||
|
local version = myModuleVersion()
|
||||||
|
local platform = "linux-x86_64-ubuntu-3.6"
|
||||||
|
local root = "~/git/gpaw-trossi"
|
||||||
|
|
||||||
|
setenv("OMP_NUM_THREADS", 1)
|
||||||
|
prepend_path("PYTHONPATH", root)
|
||||||
|
prepend_path("PYTHONPATH", pathJoin(root, "build/lib." .. platform))
|
||||||
|
prepend_path("PATH", pathJoin(root, "tools"))
|
||||||
|
prepend_path("PATH", pathJoin(root, "build/bin." .. platform))
|
||||||
|
execute {cmd='complete -o default -C "/usr/bin/python3' .. root .. '/gpaw/cli/complete.py" gpaw', modeA={"load"}}
|
||||||
Reference in New Issue
Block a user