Update various stuff
This commit is contained in:
parent
40ecaef7aa
commit
15176854c7
6 changed files with 31 additions and 6 deletions
|
@ -1,8 +1,6 @@
|
|||
function bangbang --on-event fish_preexec
|
||||
set -l command $argv
|
||||
#if ( echo $commmand | grep -q '!!' )
|
||||
set -l last_command (history --max 2 | tail --lines 1 | string escape | string escape)
|
||||
echo $last_command
|
||||
set -l last_command (history --max 1)
|
||||
set -l new_command (echo $command | sed -e "s/\!\!/$last_command/g")
|
||||
# TODO: Figure out how to replace the current command and run that instead
|
||||
echo "*** New command: $new_command ***"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue