Running a shell function from .bash.rc, as an argument #8888
Replies: 1 comment 1 reply
-
kitty zsh -ilc "y"
replace zsh with your shell obviously.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ciqven
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings, this is my first time posting here.
I am trying to auto-start an instance of kitty running yazi from my i3wm config, which will then be slotted into a layout. To launch yazi, I normally use the
y
shell function yazi provides, which is stored in my~/.bash.rc
. The goal of this function is launching yazi in a way that supports changing cwd when I close it.However, when I execute
kitty y
I get the following error:Running
kitty yazi
does work, so this seems a problem with running shell functions instead of programs. Is there a way to elegantly do this, or do I have to duplicate the function into a shell script so I can run it?Thanks for considering!
Beta Was this translation helpful? Give feedback.
All reactions