2017-03-29 3 views
0

~/.inputrcに設定しようとしていますが、このオプションは無視されているようです。私がタブを押すと、大文字と小文字を区別する一致のみが表示されます。ここで〜/ .inputrcで "set completion-ignore-case on"が無視される

は私~/.inputrcです:奇妙な

# Bash input configuration 
set completion-ignore-case on  #Enable case-insensitive tab-complete 
"\e[A": history-search-backward #Press up or down arrow to search through shell history on what you've already typed 
"\e[B": history-search-forward 

#"\e[1;9C": forward-word   #alt-left/right to move the cursor by words 
#"\e[1;9D": backward-word   #I prefer to enable this in iTerm settings so it works no matter where I'm ssh'd to. 

history-search-backward-forward設定作業を行うので、~/.inputrcが読み込まなっているが、completion-ignore-caseは何とか無視なっています。

bind "set completion-ignore-case on"を実行すると、予想される動作が得られます。私は~/.inputrcで他の変数setを試してみましたが、うまくいきました。

私はMacOS 10.12.4とbash 4.4.12(1)-release(homebrew経由でインストール)を実行しています。

答えて

3

コメントを削除してください。これは私のために働くように思われる。

# Bash input configuration 
set completion-ignore-case on 
"\e[A": history-search-backward #Press up or down arrow to search through shell history on what you've already typed 
"\e[B": history-search-forward 

#"\e[1;9C": forward-word   #alt-left/right to move the cursor by words 
#"\e[1;9D": backward-word   #I prefer to enable this in iTerm settings so it works no matter where I'm ssh'd to. 
+0

* facepalm *私はそれが問題だとは思わない。あなたはinputrcのコマンドと同じ行にコメントを書くことはできません。 – whereswalden

関連する問題