develop: Fix inputrc missing key codes
This commit is contained in:
parent
eea9539258
commit
b8a1ea3f72
@ -6,6 +6,9 @@
|
|||||||
, extraInputs ? []
|
, extraInputs ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
inputrc = ./inputrc;
|
||||||
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "develop";
|
name = "develop";
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
@ -42,6 +45,7 @@ stdenv.mkDerivation {
|
|||||||
export "PATH=$PATH:/gpfs/projects/bsc15/nix/bin"
|
export "PATH=$PATH:/gpfs/projects/bsc15/nix/bin"
|
||||||
export "SHELL=${bashInteractive}/bin/bash"
|
export "SHELL=${bashInteractive}/bin/bash"
|
||||||
export HISTFILE="\$curdir/.histfile"
|
export HISTFILE="\$curdir/.histfile"
|
||||||
|
export INPUTRC=${inputrc}
|
||||||
|
|
||||||
if [[ -z "\$@" ]]; then
|
if [[ -z "\$@" ]]; then
|
||||||
exec ${bashInteractive}/bin/bash
|
exec ${bashInteractive}/bin/bash
|
37
garlic/develop/inputrc
Normal file
37
garlic/develop/inputrc
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# inputrc borrowed from CentOS (RHEL).
|
||||||
|
|
||||||
|
set bell-style none
|
||||||
|
|
||||||
|
set meta-flag on
|
||||||
|
set input-meta on
|
||||||
|
set convert-meta off
|
||||||
|
set output-meta on
|
||||||
|
set colored-stats on
|
||||||
|
|
||||||
|
#set mark-symlinked-directories on
|
||||||
|
|
||||||
|
$if mode=emacs
|
||||||
|
|
||||||
|
# for linux console and RH/Debian xterm
|
||||||
|
"\e[1~": beginning-of-line
|
||||||
|
"\e[4~": end-of-line
|
||||||
|
"\e[5~": beginning-of-history
|
||||||
|
"\e[6~": end-of-history
|
||||||
|
"\e[3~": delete-char
|
||||||
|
"\e[2~": quoted-insert
|
||||||
|
"\e[5C": forward-word
|
||||||
|
"\e[5D": backward-word
|
||||||
|
"\e[1;5C": forward-word
|
||||||
|
"\e[1;5D": backward-word
|
||||||
|
|
||||||
|
# for rxvt
|
||||||
|
"\e[8~": end-of-line
|
||||||
|
|
||||||
|
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
|
||||||
|
"\eOH": beginning-of-line
|
||||||
|
"\eOF": end-of-line
|
||||||
|
|
||||||
|
# for freebsd console
|
||||||
|
"\e[H": beginning-of-line
|
||||||
|
"\e[F": end-of-line
|
||||||
|
$endif
|
@ -187,7 +187,7 @@ let
|
|||||||
# TODO: move into garlic/default.nix
|
# TODO: move into garlic/default.nix
|
||||||
garlic = {
|
garlic = {
|
||||||
|
|
||||||
unsafeDevelop = callPackage ./garlic/develop.nix {
|
unsafeDevelop = callPackage ./garlic/develop/default.nix {
|
||||||
extraInputs = with self; [
|
extraInputs = with self; [
|
||||||
coreutils htop procps-ng vim which strace
|
coreutils htop procps-ng vim which strace
|
||||||
tmux gdb kakoune universal-ctags bashInteractive
|
tmux gdb kakoune universal-ctags bashInteractive
|
||||||
|
Loading…
Reference in New Issue
Block a user