]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/perl/README.md
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / perl / README.md
1 # Perl
2
3 This plugin adds [perl](https://www.perl.org/) useful aliases/functions.
4
5 To use it, add `perl` to the plugins array in your zshrc file:
6
7 ```zsh
8 plugins=(... perl)
9 ```
10
11 ## Aliases
12
13 | Aliases       | Command            |  Description                           |
14 | :------------ | :----------------- | :------------------------------------- |
15 | pbi           | `perlbrew install` | Install specific perl version          |
16 | pbl           | `perlbrew list`    | List all perl version installed        |
17 | pbo           | `perlbrew off`     | Go back to the system perl             |
18 | pbs           | `perlbrew switch`  | Turn it back on                        |
19 | pbu           | `perlbrew use`     | Use specific version of perl           |
20 | pd            | `perldoc`          | Show the perl documentation            |
21 | ple           | `perl -wlne`       | Use perl like awk/sed                  |
22 | latest-perl   | `curl ...`         | Show the latest stable release of Perl |
23
24 ## Functions
25
26 * `newpl`: creates a basic Perl script file and opens it with $EDITOR.
27
28 * `pgs`: Perl Global Substitution: `pgs <find_pattern> <replace_pattern> <filename>`
29   Looks for `<find_pattern>` and replaces it with `<replace_pattern>` in `<filename>`.
30
31 * `prep`: Perl grep, because 'grep -P' is terrible: `prep <pattern> [<filename>]`
32   Lets you work with pipes or files (if no `<filename>` provided, use stdin).
33
34 ## Requirements
35
36 In order to make this work, you will need to have perl installed.
37 More info on the usage and install: https://www.perl.org/get.html