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
+ 14
6
Compare changes
  • Side-by-side
  • Inline
# ZSH
The ZSH, short for `z-shell`, is an alternative shell for Linux that offers many convenience features
!!! warning
Though all efforts have been made to ensure the accuracy and
currency of the content on this website, please be advised that
some content might be out of date and there is no continuous
website support available. In case of any ambiguity or doubts,
users are advised to do their own research on the content's
accuracy and currency.
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.
@@ -27,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)
@@ -96,7 +104,7 @@ mcd () {
You can then
```
marie@login$ mcd non-existant-directory
marie@login$ mcd non-existent-directory
```
and it will create it and `cd` into it
@@ -149,8 +157,8 @@ This allows auto-completion for `module load`:
function _module {
MODULE_COMMANDS=(
'-t:Show computer parsable output'
'load:Lload a Module'
'unload:Unload a Module'
'load:Load a module'
'unload:Unload a module'
'spider:Search for a module'
'avail:Show available modules'
'list:List loaded modules'
@@ -167,7 +175,7 @@ compdef _module "module"
### Slurm-specific shortcuts
#### Show slurm log path
#### Show Slurm log path
This allows you to run `slurmlogpath $SLURM_ID` and get the log-path directly in stdout:
Loading