New answers tagged

2

Turns out it is documented behaviour. From the ksh93 man page: Search Edit Commands These commands access your command history. [count]k Fetch previous command. Each time k is entered the previous command back in time is accessed. [count]- Equivalent to k. [count][A If cursor is at the end of the line it is equivalent to / ...


0

CentOS 6 has 2.31.3; CentOS 7 has 3.14.3 (where the feature works). It is not a new feature, having been introduced in 2007: Bug 118967 – single line scrolling with "Ctrl+Shift+ArrowUp/ArrowDown" while 2.31.3 dates from 2010 (a noticeable delay even for the enterprise releases). However, it does not work with CentOS 6 and incidentally, the git-commit logs ...


0

On more recent versions of gnome-terminal, Shift+Ctrl+↑ and Shift+Ctrl+↓ work for scrolling by line, but I have no way of checking for 2.31.


1

The bindings (whether they appear in the manual or not) appear when you type bind -p For instance (partial listing): "\C-g": abort "\C-x\C-g": abort "\e\C-g": abort "\C-j": accept-line "\C-m": accept-line # alias-expand-line (not bound) # arrow-key-prefix (not bound) # backward-byte (not bound) "\C-b": backward-char # backward-byte (not bound) "\C-b": ...


0

As is pointed out in section "1.3 Readline Init File" of the manual you refer to, the readline library is configurable. Keybindings may be defined either in /etc/inputrc, or in your local ~/.inputrc.


1

Go to Edit->Keyboard Shortcuts And uncheck "Enable the menu shortcut key" to turn it off. Reference link : here.


1

It won't take the functions raw. They need to be wrapped in a "widget" by doing zle -N widgetname funcname The two can have the same name: zle -N hw{,} Then it's possible to do: bindkey ^h hw , causing Ctrl+h to run the hw widget which runs the hw function.


2

As a rule, shells just execute the commmands they're given, they don't automatically save their state. It's common to have different state in different shell instances (e.g. settings depending on the current directory). While it isn't very common to have different sets of key bindings, it can be useful (for example with different keyboards when accessing the ...


1

Assuming you are using the Gnome desktop environment and not the legacy CDE one, I'm afraid this functionality which I believe required the plugin nautilus-open-terminal was not available. If you find its source code for the nautilus release Solaris 10 uses, you might try to build it from source. Otherwise, transitioning to Solaris 11 would be a smart move ...


1

You can bind completion to left arrow with bindkey '^[[D' expand-or-complete where ^[[D represents left arrow (run Ctrl+V or cat and hit arrow key to test that). If you also want to unbind Tab key then bindkey -r '^I'


2

This is similar to How to enable Control key combinations for GNU screen on putty?, but addresses a different aspect. In a quick check, it seems that the problem is a conflict between this line set-window-option -g xterm-keys on and this: set -g terminal-overrides "screen*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" Dropping the set-window-...


0

To expand on Caleb's answer just slightly, vi{ will select the "inside" of the code block. To include the "outside" of the code block, ie including the braces, use va{. This won't include the while stanza though. To do that you can use o to move the cursor to the beginning of the selection, and then 0 to move the selection to the beginning of the line.


1

I discovered that this version of MySQL 5.7.x on ubuntu 16.04 is compiled using editline library not readline - Im pretty sure thats the problem.


1

This is how its done in .inputrc: set editing-mode vi $if mode=vi # these are for vi-command mode set keymap vi-command # unbind space " ": "" # bind space-a, space-; " a":beginning-of-line " ;":"$" $endif


0

No above answers has answered the real question. I just reached this thread and could not find the answer either. So here you go For Gnome based environment go to Application -> System Tools -> System Monitor For Gnome based environment go to Applications > System > System Monitor



Top 50 recent answers are included