Create a delete function for deleting a single character and overbind ctrl-d to that function. This will prevent fish from exiting when I hit ctrl-d, I use ctrl-d for things like ipython. I don't want to quit fish so easy, I can use leader-x in tmux for that.

This commit is contained in:
Shawn Anderson 2020-12-23 02:53:25 -08:00
parent e41a7a1991
commit 78e73557e9
2 changed files with 4 additions and 0 deletions

View File

@ -58,3 +58,4 @@ abbr python python
set -gx GOPATH $HOME/go; set -gx GOROOT $HOME/.go; set -gx PATH $GOPATH/bin $PATH; # g-install: do NOT edit, see https://github.com/stefanmaric/g
abbr cat batcat
abbr pip pip3
bind \cd delete

View File

@ -0,0 +1,3 @@
function delete
commandline -f delete-char
end