Skip to content
Snippets Groups Projects

Resolve "There is nothing about ZSH"

Merged Norman Koch requested to merge issue-217 into preview
Compare and Show latest version
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -181,7 +181,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in
@@ -181,7 +181,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in
```bash
```bash
function slurmlogpath {
function slurmlogpath {
scontrol show job $1 | grep StdOut | sed -e 's/^\s*StdOut=//'
scontrol show job $1 | sed -n -e 's/^\s*StdOut=//p'
}
}
```
```
@@ -195,7 +195,7 @@ If there are multiple jobs running, it will show you a list of them and let you
@@ -195,7 +195,7 @@ If there are multiple jobs running, it will show you a list of them and let you
function ftails {
function ftails {
JOBID=$1
JOBID=$1
if [[ -z $JOBID ]]; then
if [[ -z $JOBID ]]; then
JOBS=$(squeue --format="%i \\'%j\\' " -u $USER | grep -v JOBID)
JOBS=$(squeue --format="%i \\'%j\\' " --me | grep -v JOBID)
NUMBER_OF_JOBS=$(echo "$JOBS" | wc -l)
NUMBER_OF_JOBS=$(echo "$JOBS" | wc -l)
JOBID=
JOBID=
Loading