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
+ 5
5
Compare changes
  • Side-by-side
  • Inline
@@ -8,7 +8,7 @@
users are advised to do their own research on the content's
accuracy and currency.
The ZSH, short for `z-shell`, is an alternative shell for Linux that offers many convenience features
The [ZSH](https://www.zsh.org), short for `z-shell`, is an alternative shell for Linux that offers many convenience features
for productive use that `bash`, the default shell, does not offer.
This should be a short introduction to `zsh` and offer some examples that are especially useful on Taurus.
@@ -35,7 +35,7 @@ more details.
### Auto-completion
`zsh` offers more auto-completion features than `bash`. You can auto-complete programs, filenames, parameters,
`man`-pages and a lot more, and you can cycle through the suggestions with `<TAB>`.
`man`-pages and a lot more, and you can cycle through the suggestions with `TAB`-button.
![Cycling through auto-completion for parameter names](misc/zsh_autocomplete_parameters.png)
@@ -181,7 +181,7 @@ This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in
```bash
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
function ftails {
JOBID=$1
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)
JOBID=
@@ -223,7 +223,7 @@ function ftails {
This is way faster to type:
```bash
alias sq="squeue -u $USER"
alias sq="squeue --me"
```
Now you only need to type `sq` instead of `squeue -u $USER`.
Loading