Skip to content

Commit fe29d45

Browse files
committed
Added backspace binding to \177 which is used in Terminal.app (thanks to @amir20 for the help)
1 parent 42a7c5d commit fe29d45

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

key_bindings.fish

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ function key_bindings
77
_pisces_bind_pair (string split ',' $pair)
88
end
99

10+
# normal backspace, also known as \010 or ^H:
1011
bind \b _pisces_backspace
12+
# Terminal.app sends DEL code on ⌫:
13+
bind \177 _pisces_backspace
1114
end

uninstall.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ for pair in $pisces_pairs
44
end
55
end
66

7-
# this doesn't really work "/
87
bind \b backward-delete-char
8+
bind \177 backward-delete-char
99

1010
set -e pisces_pairs

0 commit comments

Comments
 (0)