Hot answers tagged

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-...


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 ...


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 / ...


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": ...


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.


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'


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



Only top voted, non community-wiki answers of a minimum length are eligible