Compare commits

...

2 commits

Author SHA1 Message Date
3f81a7a4a5 Fix the current directory reporting 2024-05-14 21:27:36 -05:00
9d6066380d Use some emacs-style key bindings 2024-05-14 21:27:20 -05:00
2 changed files with 16 additions and 1 deletions

15
.inputrc Normal file
View file

@ -0,0 +1,15 @@
set input-meta on
set output-meta on
$if mode=emacs
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
$endif

View file

@ -12,7 +12,7 @@ cattle-slay-reaper() {
cd() {
command cd "$@"
printf '\e[]1337;CurrentDir=%s\G' "$PWD"
printf '\033]1337;CurrentDir=%s\007' "$PWD"
printf %s "$PWD" > /tmp/iterm2-prev-dir.txt
}