Ctrl+backtick not working in Linux based terminals [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
The keyboard shortcut Ctrl+` (Ctrl+backtick) doesn't work in Linux based terminals like urxvt, gnome-terminal, xfce-terminal, Git Bash on Windows, etc.
Is this a bug or a feature?
All other applications like Emacs and VS Code accept this keybinding.

Following keybinding works for my xterm/ubuntu:
#!/bin/bash
xrdb -merge << 'EOF'
XTerm*VT100.translations: #override\n\
Ctrl <Key>` : string("ls -la")string(0x0d)
EOF
# then start a new xterm
With some adaptation, it should work for urxvt and xfce-terminal.
Update
For xfce4-terminal, you can put following line in ~/.config/xfce4/terminal/accels.scm
(gtk_accel_path "<Actions>/terminal-window/paste" "<Primary>grave")
So that Ctrl-` will paste.

Related

Why does the default shell in OS X 10 look differently than that in Linux (Mint, Lubuntu...)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
To clarify, when entering the default shell in OS X it appears as:
pcname:~ username$
and changing directories appears as:
pcname:myFolder~ username$
however, in my experience with linux distros, the shell appears as:
username#pcname:~$
what is the purpose for the differences in syntax?
What I do is the following: On the system that has the promt the way I want it, I type:
echo $PS1
I copy the result, say, \u#\h \w\a \$ and then edit the ~/.bashrc on the system that I want to use with the line:
export PS1="\u#\h \w\a \$ "
And then I get the same prompt on that system as well.
If you want to get creative, have a look here

linux - copy/paste in a terminal session [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
How do I get the copy/paste functionality in a terminal session in Linux (i. e. with no desktop at all, like when you press Alt+Ctrl+F1 in Ubuntu)? Is there a package that could substitute Ctrl+Shift+C and Ctrl+Shift+V functionality that exists in desktop terminals?
You can look at xclip in Linux:
echo hello | xclip
To copy to the clipboard. Then:
xclip -o
to paste it. Depending on what you want to do, there are also the crtl+u to cut a line from the terminal, and crtl+y to paste it (on the same terminal only though).
Hope it helps!

Bash Terminal: How do I bind Ctrl+K to kill-whole-line THEN clear screen? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
basically I want to set a shortcut (ctrl+k) in my cygwin linux terminal to run
bind '"\C-k": kill-whole-line'
THEN immediately run
alias cls="echo -e '\033c\c'"
Both work by themselves but I would like to do it in one keyboard shortcut. Thanks in advance!
This sequence clear current input and executes terminal reset.
bind '"\C-k": "\C-e\C-uecho -e \"\\033c\\c\"\n"'

how to capture output from screen command in unix? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
When I use the unix screen command to open a screen and I run a unix command (say ls), the text at the top disappears and I can only see what comes at the end of the output. How can I capture the complete output in the window?
Using Screen capabilities:
Ctrl+a then escape and you'll be able to move your cursor as in regular text editors

vim settings does not work correctly in zsh [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I just switched my shell from bash to zsh and I noticed that zsh is not using same version of vim that I use in bash. Wondering why that might be the case? Do I need to set some config?
EDIT
remove other stuffs
You either have defined an alias for vim in one of them, or the value of the PATH variable is different.

Resources