feat (zshrc): create handy alias to create a temporary directory and cd into it

This commit is contained in:
eeemsi 2023-01-13 17:39:34 +01:00
parent 777271fd41
commit fe24172e4c
1 changed files with 3 additions and 0 deletions

3
zshrc
View File

@ -58,6 +58,9 @@ alias view='vim -R'
# Suppresses line numbers in less
alias less='less --line-numbers'
# Create temporary directory and cd to it
alias cdt='builtin cd "$(mktemp -d)"'
# Defines the prompt
precmd() {
vcs_info