I'd like to add a keybinding to my .inputrc that puts the value of an environment variable, USER, on the command line.
I tried all kinds of escaping but the string $USER is written verbatim to the command line, not the value of that environment variable.
$if mode=vi
# Keymaps when we are in insert mode
set keymap vi-insert
# Insert path before mountpoint
"C-e": "/run/media/$USER"
Is there a reasonable way to do this with .inputrc or am I better off using other means like .bashrc?
shell-expand-line, which you can bind to some character sequence.