Skip to content

Instantly share code, notes, and snippets.

@turanegaku
turanegaku / push-line.fish
Last active August 7, 2021 06:01 — forked from dedeibel/push-line.fish
fish shell function to emulate zsh's push-line feature := store the current command and run one in between - restore the last command afterwards
# Save this file to ~/.config/fish/functions/push-line.fish
# Bind the function by using this in ~/.config/fish/functions/fish_user_key_bindings.fish
# function fish_user_key_bindings
# # For example alt+q
# bind \eq push-line
# end
function push-line
set cl (commandline)