5,337
edits
(→Python) |
No edit summary |
||
Line 53: | Line 53: | ||
==MBRC Cluster== | ==MBRC Cluster== | ||
See [https://wiki.umiacs.umd.edu/umiacs/index.php/MBRC UMIACS MBRC] | See [https://wiki.umiacs.umd.edu/umiacs/index.php/MBRC UMIACS MBRC] | ||
==<code>.bashrc</code>== | |||
{{hidden | My .bashrc | | |||
<syntaxhighlight lang="bash"> | |||
#PS1='\w$ ' | |||
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' | |||
if test -f "/opt/rh/rh-php72/enable"; then | |||
source /opt/rh/rh-php72/enable | |||
fi | |||
export NVM_DIR="$HOME/.nvm" | |||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |||
command_exists() { | |||
type "$1" &> /dev/null ; | |||
} | |||
# Modules | |||
if command_exists module ; then | |||
module load tmux | |||
module load cuda/10.0.130 | |||
module load cudnn/v7.5.0 | |||
module load Python3/3.7.6 | |||
fi | |||
if command_exists python3 ; then | |||
alias python=python3 | |||
fi | |||
if command_exists python3 ; then | |||
export PATH="${PATH}:$(python3 -c 'import site; print(site.USER_BASE)')/bin" | |||
fi | |||
export PYTHONPATH="${PYTHONPATH}:/nfshomes/dli7319/.local/lib/python3.7/site-packages/" | |||
</syntaxhighlight> | |||
}} |