Skip to content

Instantly share code, notes, and snippets.

@matsest
Last active May 31, 2023 14:14
Show Gist options
  • Save matsest/0741d67ecac75c880ecd43ce8cef888d to your computer and use it in GitHub Desktop.
Save matsest/0741d67ecac75c880ecd43ce8cef888d to your computer and use it in GitHub Desktop.
VimEscapeEverything
## Add this to your .bash_rc / .zshrc
# Alias for vim-style exit in Bash/Zsh
alias :q=exit
# Add this to your $PROFILE:
## Adding alias for vim-style exit in PowerShell
function exitPS { Invoke-Command -ScriptBlock { exit } }
Set-alias -Name ':q' -Value exitPS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment