mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 09:15:24 +02:00
[bash] Slurm integration, check if we are in an interactive shell
This commit is contained in:
parent
4f16ae76ee
commit
af8a35c539
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ __slurm_ps1_remaining_time(){
|
|||
fi
|
||||
}
|
||||
|
||||
test -n "$SLURM_PTY_PORT" && (
|
||||
[[ -n "$INTERACTIVE" && -n "$SLURM_PTY_PORT" ]] && (
|
||||
echo "[SLURM] SLURM_JOB_ID=$SLURM_JOB_ID"
|
||||
echo "[SLURM] Your nodes are:"
|
||||
srun bash -c 'echo " $(hostname)*$SLURM_CPUS_ON_NODE"' | sort -u
|
||||
|
|
Loading…
Reference in a new issue