LoginSignup
4
5

More than 3 years have passed since last update.

Bashのベル音を無効にする

Last updated at Posted at 2018-05-04

Windows 10 Home バージョン 1709

Bashでタイプしてると、やたらとピロリーンってなるのが鬱陶しいので無効化する方法を探しました。

解決策はこちらにありました。
https://linuxfan.info/bow-stop-beep

$HOME/.inputrcに

set bell-style none

#↑を設定するとHome,Endキーが機能しなくなる場合がある。
#その場合、以下のキーバインド設定を追加する。
"\e[1~": beginning-of-line
"\e[4~": end-of-line


を追記するというもの。.inputrcがなければ作成してください。

ちなみにコマンドプロンプトでベル音を無効化する方法はこちらです。
https://errorfixer.co/disable-cmd-powershell-beep-sounds/

PowerShellを「管理者として実行」で開いて下記を実行します。

Set-Service beep -StartupType disabled

サービスを停止するってことですかね。ベル音すべてが鳴らなくなるのかな?
その辺は未確認です。

参照
https://wiki.archlinux.jp/index.php/Home_%E3%82%84_End_%E3%82%AD%E3%83%BC%E3%81%8C%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%AA%E3%81%84

4
5
7

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5