1
0
mirror of https://github.com/drewcassidy/dotfiles synced 2024-09-01 18:24:06 +00:00

make fish support !!

This commit is contained in:
Andrew Cassidy 2017-12-05 12:23:38 -08:00
parent ed63863dff
commit a7ac0bff50
No known key found for this signature in database
GPG Key ID: 963017B38FD477A1
6 changed files with 26 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "fishline-fork"]
path = fish/.config/fish/fishline
url = https://github.com/drewcassidy/fishline

@ -0,0 +1 @@
Subproject commit bddf62a3237d5f011b4a844b2fa78473d653caff

View File

@ -48,7 +48,7 @@ set FLCLR_CONDA_BG $FLCLR_VFISH_BG
set FLCLR_CONDA_FG $FLCLR_VFISH_FG
# Color for GIT segment
set FLCLR_GIT_BG_CLEAN green
set FLCLR_GIT_BG_CLEAN green
set FLCLR_GIT_FG_CLEAN black
set FLCLR_GIT_BG_DIRTY yellow
set FLCLR_GIT_FG_DIRTY black

View 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

View 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

View File

@ -0,0 +1,4 @@
function fish_user_key_bindings
bind ! __history_previous_command
bind '$' __history_previous_command_arguments
end