zsh-users
 help / color / mirror / Atom feed
* How can you re-edit a loaded function?
@ 2021-03-03 17:44 zsh
  2021-03-03 17:47 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: zsh @ 2021-03-03 17:44 UTC (permalink / raw)
  To: zsh-users

Hi

I load this function 'f' and many others from .zshrc

 > which f

f () { F=$1 ffmpeg -i "$F" -af "volume=2" "loud$F" }


But imagine I would like to do an on-the-fly / temporary edit


but how can i 'get at' the function without either re-editing/reloading 
.zshrc.


The only way I see is by a clunky copy paste

alias -g CO=' | xclip -in'

which f CO

etc


any suggestions?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How can you re-edit a loaded function?
  2021-03-03 17:44 How can you re-edit a loaded function? zsh
@ 2021-03-03 17:47 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2021-03-03 17:47 UTC (permalink / raw)
  To: zsh, zsh-users


> On 03 March 2021 at 17:44 zsh@rayninfo.co.uk wrote:
> I load this function 'f' and many others from .zshrc
> 
>  > which f
> 
> f () { F=$1 ffmpeg -i "$F" -af "volume=2" "loud$F" }
> 
> 
> But imagine I would like to do an on-the-fly / temporary edit
> but how can i 'get at' the function without either re-editing/reloading 
> .zshrc.

autoload -Uz zed
zed -f f

pws


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-03 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 17:44 How can you re-edit a loaded function? zsh
2021-03-03 17:47 ` Peter Stephenson

zsh-users

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-users zsh-users/ http://inbox.vuxu.org/zsh-users \
		zsh-users@zsh.org
	public-inbox-index zsh-users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git