El consejo del usuario meuh para usar shell-expand-line
me llevó a esta solución que pone el valor de la variable de entorno en la línea de comando:
$if mode=vi
# Keymaps when we are in insert mode
set keymap vi-insert
# Expand variables like ~ and $USER to their values
"\C-a": shell-expand-line
# Insert path before mountpoint, then expand the variable
"\C-e": "/run/media/$USER/\C-a"
Ahora, presionando Ctrl + e da como resultado /run/media/me/
en la línea de comando.
Эти «учебники» — бедствие.
Я не администрирую машины Centos, но на моем Centos 7 тестовая машина vm (ваша выглядит как Centos 6 ), вот как я установилnodejs
:
yum install epel-release
yum install nodejs
Совершенно (непроверенный )метод устранения повреждения заключается в удалении пакета nodejs
, удалении репозитория nodesource
, а затем установке nodejs
из epel :
yum remove nodejs
rm /etc/yum.repos.d/nodesource*
yum install epel-release
yum install nodejs