Re:XTerm: It's Better Than You Thought
by dharmab on Monday January 11, 2021 @02:37PM
(#25735055)
I switched to kitty because it supports a killer feature I became accustomed to in iTerm- a keybind for "Open a new terminal in the same directory as the current terminal."
[ Parent
| on HN ]
This is something that I never learnt how to do with Xterm, I put the keybinding in Bash:
bind -x '"\C-T": _terminal_here'
I would love to know how to execute a command from Xterm directly, I am sure that it is possible.
Try this:
XTerm.vt100.translations: #override \n\
Ctrl <Key>T: spawn-new-terminal()That opens the new terminal in the home directory, right? My keybind opens it in whatever directory I’m already in which I find handy in deeply nested projects.
It opens in the current directory, not just home.
Sweet!
Works like a charm, thank you.