mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
feat(plugin): add plugin to easily save aliases and functions
This commit is contained in:
parent
f8022980a3
commit
b618fbd357
2 changed files with 66 additions and 0 deletions
27
plugins/fishysave/README.md
Normal file
27
plugins/fishysave/README.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
## fishysave
|
||||
|
||||
Plugin to save and update functions and aliases directly from shell, reminiscent of the fish "funcsave" feature.
|
||||
|
||||
## Install
|
||||
|
||||
add fishysave to the plugins array of your zshrc file:
|
||||
```bash
|
||||
# ~/.zshrc
|
||||
plugins=(... fishysave)
|
||||
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Save an alias
|
||||
alias lsal="ls -al"
|
||||
fishysave lsal
|
||||
|
||||
# Save a function
|
||||
function lsa() {
|
||||
ls -al
|
||||
}
|
||||
fishysave lsa
|
||||
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue