fish: remove expand_dots binding

This commit is contained in:
Charles Gould 2023-09-27 21:29:32 -05:00
parent 3a1e5bb978
commit 8aeeabb2a9
2 changed files with 0 additions and 15 deletions

View File

@ -49,9 +49,6 @@ if status --is-interactive
# By default, Ctrl+L clears the screen
# Add binding Ctrl+Alt+L to clear screen AND scrollback buffer
bind \e\f 'clear; commandline -f repaint'
# Expand '...' to '../..'
bind . expand_dots
end
if not set -q __universals_initialized

View File

@ -1,12 +0,0 @@
# https://github.com/nickeb96/puffer-fish
function expand_dots -d 'Expand ... to ../..'
set -l item (string split ' ' (commandline --cut-at-cursor))[-1]
switch $item
case './*'
commandline --insert '.'
case '*..'
commandline --insert '/..'
case '*'
commandline --insert '.'
end
end