Update sway with some fixes, update fish stuff

This commit is contained in:
askiiart 2024-01-03 18:58:34 -05:00
parent 118250f033
commit 40ecaef7aa
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
24 changed files with 145 additions and 48 deletions

View file

@ -32,6 +32,9 @@ function _tide_init_update --on-event _tide_init_update
_tide_fish_colorize "fisher install ilancosman/tide@v6"
sleep 3
end
# Set (disable) the new jobs variable
set -q tide_jobs_number_threshold || set -U tide_jobs_number_threshold 1000
end
function _tide_init_uninstall --on-event _tide_init_uninstall

9
fish/conf.d/bangbang.fish Executable file
View file

@ -0,0 +1,9 @@
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 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 ***"
end