Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yudapc/e8c000d4caf811ffab8697de831c7455 to your computer and use it in GitHub Desktop.
Save yudapc/e8c000d4caf811ffab8697de831c7455 to your computer and use it in GitHub Desktop.
Can not open vi on your terminal, because wrong PATH
I have ever can not open vi or vim or my bash does not work.
I remember what I did.
Because I changed PATH on ~/.zshrc :D
So, for restore you can run this command:
`export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment