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
+ 13
5
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
@@ -187,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=
@@ -215,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