6

Is there a way to change command-line shortcuts such as copy and paste from Ctrl+Shift+c and Ctrl+Shift+v to Ctrl+c and Ctrl+v respectively?

I often accidently use the default system shortcuts Ctrl+c and Ctrl+v instead of those defined for command-line use, which I find very annoying, so I was wondering...

Is it possible to change command-line keyboard shortcuts?

  • With gnome-terminal? – hg8 Dec 1 '15 at 16:12
  • @hg8 Ubuntu terminal, which is the gnome terminal - so yes :) – TellMeWhy Dec 1 '15 at 16:14
  • 1
    Personally I'd discourage doing that; remapping CTRL+V deprives you of the ability of sending a Synchronous idle character (maybe you won't miss that) but remapping CTRL+C deprives you of the ability of SIGINTing the foreground process in case things get out of control. It takes a bit, but you'll get used to the difference eventually. – kos Dec 1 '15 at 16:35
  • 3
    FYI you aren't changing "command line" shortcuts but the terminal emulator's shortcuts. – unperson325680 Dec 1 '15 at 17:43
3

Using gnome-terminal.

Go in Edit > Preferences > Shortcuts.

Then simply edit them :

enter image description here

  • oh right.. lol =) – TellMeWhy Dec 1 '15 at 16:17
0

To change the key or keys to be pressed for a keyboard shortcut:

  1. Click the icon at the very right of the menu bar and select System Settings.
  2. Open Keyboard and select the Shortcuts tab.
  3. Select a category in the left pane, and the row for the desired action on the right. The current shortcut definition will change to New accelerator…
  4. Hold down the desired key combination, or press Backspace to clear.
  • 3
    Please note that those settings apply system-wide, but not on the gnome-terminal. It uses its own custom shortcuts, not those set up by the system. I think your answer is wrong. – Byte Commander Dec 1 '15 at 16:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.