Comparable return value of focus-tab
#4376
-
I'm trying to do something like tmux-sessionizer but instead of using tmux, I want to use kitty tabs. So basically I want to
I thought the easiest way to implement this would be the use of
If there is no corresponding tab open I get (I thought there might be a way do get this working without creating a custom kitten) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you want to check exit codes of a command in a shell script you do:
You are comparing the stdout of a command with zero. |
Beta Was this translation helpful? Give feedback.
-
On Mon, Dec 20, 2021 at 04:32:35AM -0800, tuxflo wrote:
The only thing I don't know now is: if I append a command, such as `nvim` to the `new-window` call, the tab is closed if neovim is closed (by using `:q`).
Is there an option to keep the tab open, even if the first provided command exits or do I have to switch to the `kitty @ launch` command?
You should switch to launch anyway, its the recommended way. But if you
want to just us sh -c "your command; bash"
|
Beta Was this translation helpful? Give feedback.
If you want to check exit codes of a command in a shell script you do:
You are comparing the stdout of a command with zero.