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:
parent
e41a7a1991
commit
78e73557e9
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
function delete
|
||||
commandline -f delete-char
|
||||
end
|
||||
Loading…
Reference in New Issue