LoginSignup
1
1

More than 5 years have passed since last update.

osx で `cd /foo/bar/hoge` の状態で Ctrl+w して `cd /foo/bar/` のようにパスを区切り文字として扱う

Posted at

タイトルが長いですが。

$ cd /foo/bar/hoge でCtrl-wで一文字消すと $ cd まで戻ってしまって悲しい。
なので一文字だけ戻るように設定しました。

# /foo/bar^w -> /foo/
stty werase undef
bind "\C-w":unix-filename-rubout

UbuntuとOSXで同じ設定使う部分だけ共有するような emacs の init-loader みたいな仕掛けってないんでしょうかね。

1
1
0

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
1
1