Skip to content

Instantly share code, notes, and snippets.

@zzamboni
Created March 14, 2018 16:39
Show Gist options
  • Save zzamboni/ef33e1d86f12f887b9922154cdadbd53 to your computer and use it in GitHub Desktop.
Save zzamboni/ef33e1d86f12f887b9922154cdadbd53 to your computer and use it in GitHub Desktop.
fn last-cmd-if-enter {
lastcmd = [(edit:command-history)][-1][cmd]
if (eq $edit:current-command "") {
edit:current-command = $lastcmd
}
edit:smart-enter
}
edit:insert:binding[Enter] = $last-cmd-if-enter~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment