Changed how the mktemp trick work.

This way actually has a couple of advantages.

1. With this you write something like $ _ vim file.xml. This is
automatically drop you into a tmp dir then run the vim command.
2. zsh completions aren't still work.
This commit is contained in:
James Patrick 2022-01-05 23:15:17 -05:00
parent b5bdc49d47
commit 3556761ebd

View File

@ -15,7 +15,7 @@ alias docker="sudo docker"
alias dc="sudo docker-compose"
# Goes to a temp folder. This will be deleted on restart.
alias tmp="cd $(mktemp -d)"
alias _="cd `mktemp -d` ; "
alias :q="exit"