Kovid Goyal
9d027e4fbd
ssh kitten: Fix kitten not being on PATH when sshing into Debian systems
...
Fixes #7160
2025-01-02 19:46:50 +05:30
Kovid Goyal
4f26bada31
Fix typo in bash integration script caught by the test
2024-05-09 12:39:03 +05:30
Kovid Goyal
219e53826b
More efficient encoding for cmdline in the prompt marking escape code
2024-05-09 12:03:02 +05:30
Kovid Goyal
0d68a21be5
notify_on_cmd_finish: Show the actual command that was finished
...
Fixes #7420
2024-05-09 09:49:26 +05:30
goodactive
6ae24a8c8d
chore: remove repetitive words
...
Signed-off-by: goodactive <goodactive@qq.com >
2024-04-19 18:29:06 +08:00
Koichi Murase
af84161528
Fix Bash integration removing existing elements of PROMPT_COMMAND
2024-02-09 20:50:30 +09:00
Kovid Goyal
2aa37de6ff
Only alias sudo if no systemwide terminfo db for xterm-kitty is found
2023-11-03 12:30:29 +05:30
Kovid Goyal
9d5bb3b2f2
bash integration: Also make sudo a function
...
There is less need in bash since its sudo completion is not as buggy,
but it does fix the sudo --edit issue
2023-10-31 15:53:45 +05:30
Kovid Goyal
4d230f5035
Fix #6695
2023-10-10 09:38:52 +05:30
Kovid Goyal
d96fdb80ed
Shell integration now aliases sudo to make the kitty terminfo db available in the sudo environment
...
This should make terminfo completely transparent for most users on the
local machine and on remote machines that are connected to with the ssh
kitten.
2023-09-24 13:35:29 +05:30
Václav Kubernát
a502e94950
bash_integration: Do not leak variable i
...
With shell-integration, the user would see the last value of this
variable (as set by the shell-integration script.
Fix this by making it local.
2023-05-03 18:35:30 +02:00
Kovid Goyal
5f9b520ca0
Bash integration: Dont fail if the user enabled failglob in their bashrc
...
BASH is by *far* the most buggy and least featureful of the three shells.
Fix #6119
2023-03-19 21:05:29 +05:30
pagedown
df1a99a974
Shell integration: More builtin commands
2023-02-03 10:56:19 +08:00
Kovid Goyal
a9da57d9b3
Forgot to use builtin for alias
2023-02-01 19:27:39 +05:30
Kovid Goyal
fbbfb25702
Better fix for kitten not being in PATH
...
Add it to PATH just as we add the kitty dir to PATH. Ensures the correct
kitten is in PATH, corresponding to the correct kitty.
2023-02-01 10:16:50 +05:30
Kovid Goyal
47641456da
Ensure edit-in-kitty works even if kitten is not in PATH
...
Still needs to be implemented for fish shell
2023-01-31 20:41:39 +05:30
Kovid Goyal
6b8e5ea225
Rename kitty-tool to kitten
...
It's easier to type, and cuter.
Also, most, if not all of the TUI parts of
kitty's kittens will eventually be re-written into kitten.
The only downside I can see is that we cant tab complete kitty
anymore, but hopefully there will be less reason to run kitty
from the shell as command line tools migrate to kitten.
Meowrrrr!!!
2023-01-14 15:44:52 +05:30
Kovid Goyal
51bba9110e
Bash integration: Fix clone-in-kitty not working on bash >= 5.2 if environment variable values contain newlines or other special characters
...
Bash >= 5.2 changed the export command to output values using $' escaping when they contain special characters.
Fixes #5629
2022-11-22 16:38:24 +05:30
Kovid Goyal
efaf9faa38
Implement edit-in-kitty using kitty-tool
...
Fixes #5546
Fixes #5630
2022-11-17 20:48:20 +05:30
Kovid Goyal
8f5302a650
Hook up kitty-tool completions with shell integration
2022-11-14 15:42:03 +05:30
Kovid Goyal
53dc079c10
Use compopt to manage files and spaces
2022-11-14 15:41:59 +05:30
Kovid Goyal
266e51310c
Basic BASH completion
2022-11-14 15:41:59 +05:30
Mark Keisler
a77852466c
bash shell integration: Send STDERR of unsetting inherit_errexit to
...
/dev/null
Some bash versions may not have that option and rather than checking if
they even have it or if it is set, just quiet the STDERR it may throw.
```
$ kssh myhost
bash: shopt: inherit_errexit: invalid shell option name
myhost:~$ bash --version
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html >
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```
2022-08-29 08:58:54 -05:00
Kovid Goyal
795b32efd7
Bash integration: Fix the inherit_errexit option being set by shell integration
...
Fixes #5349
2022-08-04 16:23:52 +05:30
pagedown
4e1cd0590b
Use builtin to call read in zsh integration and bash integration
2022-07-26 13:20:50 +08:00
Kovid Goyal
d6492264c7
Bash integration: Fix declare not creating global variables in .bashrc
...
Fixes #5254
2022-07-08 18:55:04 +05:30
Kovid Goyal
fb8398c2eb
bash: completion for edit/clone-in-kitty
2022-05-30 08:16:51 +05:30
Kovid Goyal
e82c5a63b5
Avoid unnecessary use of cat
2022-05-27 14:18:16 +05:30
Kovid Goyal
bd84ec03ce
Implement edit-in-kitty for bash
2022-05-27 12:38:26 +05:30
Kovid Goyal
37cdaea9ed
Also save command history before cloning in bash
2022-04-22 23:40:59 +05:30
pagedown
19fdcec358
...
2022-04-18 11:54:14 +08:00
Kovid Goyal
230a9f4678
Implement option to control clone sourcing strategies
2022-04-17 19:39:32 +05:30
Kovid Goyal
291f9e9a5e
Make cloning safer
...
Now env vars are set after shell rc files are sourced. And the clone
request cannot specify the cmdline to execute.
2022-04-17 07:49:58 +05:30
Kovid Goyal
1daf745d74
Add explicit support for python and conda venvs to clone-in-kitty
...
Still needs to be implemented for fish
2022-04-16 13:15:10 +05:30
Kovid Goyal
e71b9091a3
Dont rely on env -0 for bash either
2022-04-15 13:33:32 +05:30
Kovid Goyal
aab6f3e450
...
2022-04-14 17:28:41 +05:30
Kovid Goyal
829ed0ec0d
Fix #4964
2022-04-14 17:20:30 +05:30
Kovid Goyal
3ddea42660
...
2022-04-13 22:45:36 +05:30
Kovid Goyal
1dec5f2e08
Help message for clone-in-kitty
2022-04-13 21:38:33 +05:30
Kovid Goyal
88d597f6b2
Dont define clone-in-kitty in POSIX mode
...
POSIX mode doesnt allow - in identifiers
2022-04-13 20:55:00 +05:30
Kovid Goyal
d0c0b01724
Get clone-in-kitty working for bash as well
2022-04-13 20:38:04 +05:30
Kovid Goyal
7788f48dd5
Ensure IFS is correct when iterating over KITTY_SHELL_INTEGRATION
2022-04-12 23:03:05 +05:30
Kovid Goyal
d0398dca28
Bash shell integration: Fix yet another inconsistent use of SYS_BASHRC
...
Why Linux distros are constitutionally incapable of using consistent
names and values for anything is beyond me.
Fixes #4934
Fixes #4935
2022-04-07 17:54:52 +05:30
Kovid Goyal
0dff455ffa
declare oldval local
2022-03-30 11:57:46 +05:30
Kovid Goyal
81739288e8
handle multiple trailing spaces and semi-colons
2022-03-30 11:54:06 +05:30
Kovid Goyal
5641668bc1
Bash integration: Handle existing PROMPT_COMMAND ending with a literal newline
2022-03-30 10:44:59 +05:30
pagedown
a765d551e4
Fix bash integration cwd reporting missing hostname
2022-03-23 19:29:18 +08:00
Kovid Goyal
f982e754e4
Enable CWD reporting in bash integration
2022-03-15 15:37:17 +05:30
pagedown
4aea64261e
...
2022-03-07 20:56:02 +08:00
pagedown
cf0cd9acd9
Remove trailing semicolons
2022-03-07 20:53:35 +08:00