「bind ~/.inputrc」を実行すると、再ログインするまで右上のスラッシュ キー ('/') が無効になるのはなぜですか?

「bind ~/.inputrc」を実行すると、再ログインするまで右上のスラッシュ キー ('/') が無効になるのはなぜですか?

.inputrc以下は私のファイルです。 を呼び出した後bind ~/.inputrc、ログアウトして再度ログインするまで、右上のスラッシュ キーが無効になっているのはなぜですか?

# Key-bindings for the command-line editor.

# Ask before displaying >50 items
# Since $WINDIR $PATH var can be in $PATH, this could list
# all window exectables in C:\WINDOWS
set completion-query-items 50

# Ignore case for the command-line-completion functionality
# on:  default to a Windows style console
# off: default to a *nix style console
set completion-ignore-case on

# none, visible or audible
set bell-style audible

# disable/enable 8bit input
set meta-flag on
set input-meta on
set output-meta off
set convert-meta on

# visible-stats
# Append a mark according to the file type in a listing
set visible-stats off
set mark-directories on

# Show all instead of beeping first
set show-all-if-ambiguous on

"\e[1~": beginning-of-line       #HOME
"\e[4~": end-of-line             #END
"\e[A":history-search-backward   #UP
"\e[B":history-search-forward    #DOWN

答え1

は、ホーム ディレクトリのキー シーケンスをバインドするコマンドです。これは、バインドが定義されていないプレフィックス キーにバインドされるためbind ~/.inputrc、その後にキーを押しても何も起こりません。/home/aliteralmind/inputrc/home/aliteralmind//

bashからreadlineファイルを読み込むには、

bind -f ~/.inputrc

ただし、この特定の例は、bash の起動時に読み込まれるため、あまり役に立ちません~/.inputrc。唯一の用途は、ファイルを変更した場合に新しいバインディングをロードすることです (削除したバインディングは削除されません)。

関連情報