mirror of
https://github.com/drewcassidy/dotfiles
synced 2024-09-01 18:24:06 +00:00
make fish support !!
This commit is contained in:
parent
ed63863dff
commit
a7ac0bff50
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "fishline-fork"]
|
||||||
|
path = fish/.config/fish/fishline
|
||||||
|
url = https://github.com/drewcassidy/fishline
|
1
fish/.config/fish/fishline
Submodule
1
fish/.config/fish/fishline
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit bddf62a3237d5f011b4a844b2fa78473d653caff
|
8
fish/.config/fish/functions/__history_previous_command.fish
Executable file
8
fish/.config/fish/functions/__history_previous_command.fish
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
function __history_previous_command
|
||||||
|
switch (commandline -t)
|
||||||
|
case "!"
|
||||||
|
commandline -t $history[1]; commandline -f repaint
|
||||||
|
case "*"
|
||||||
|
commandline -i !
|
||||||
|
end
|
||||||
|
end
|
9
fish/.config/fish/functions/__history_previous_command_arguments.fish
Executable file
9
fish/.config/fish/functions/__history_previous_command_arguments.fish
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
function __history_previous_command_arguments
|
||||||
|
switch (commandline -t)
|
||||||
|
case "!"
|
||||||
|
commandline -t ""
|
||||||
|
commandline -f history-token-search-backward
|
||||||
|
case "*"
|
||||||
|
commandline -i '$'
|
||||||
|
end
|
||||||
|
end
|
4
fish/.config/fish/functions/fish_user_key_bindings.fish
Normal file
4
fish/.config/fish/functions/fish_user_key_bindings.fish
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
function fish_user_key_bindings
|
||||||
|
bind ! __history_previous_command
|
||||||
|
bind '$' __history_previous_command_arguments
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user