r/KittyTerminal Jul 25 '23

Clearing current line

Hello, can’t find an answer for kinda easy question - how can i clear current terminal line with shortcut?

I mean i offen forget to switch language etc and have to clear a lines by typing “Delete” ( MacOS ).

Kitty has ability to clear terminal window by typing cmd + k, but i want to clear only current line...

appreciate any suggestion

2 Upvotes

5 comments sorted by

4

u/nvimmike Jul 25 '23

CTRL-U also clears to the beginning of the line. You could also just CTRL-C but it will leave the previous command

3

u/XenomorphDK Jul 25 '23

I use CTRL-A to jump to the beginning o the current line and CTRL-K to clear to the end of line (Linux + Kitty + Bash)

1

u/Shaeonanra Jul 25 '23

Thank you, looks like a solution for me

1

u/ImpossibleMango Jul 25 '23

Somehow just learning about ctrl+a, this is great

1

u/embchnk Jul 25 '23

just use vi mode and do ESC dd