mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
aliases: replace cdt alias with function
This adds an optional argument to `cdt` to allow specifying the temporary directory prefix instead of the default `tmp`. This also shortens the random character string from 10 (GNU mktemp) to 8. Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
2
aliases
2
aliases
@ -35,7 +35,7 @@ alias al=la # No, I don't need the Mono Assembly Linker
|
||||
alias md='mkdir -p'
|
||||
alias rd='rmdir -p'
|
||||
alias -- -='cd -'
|
||||
alias cdt='cd `mktemp -d`'
|
||||
cdt() { cd "$(mktemp -d -t "${1:-tmp}.XXXXXXXX")"; }
|
||||
|
||||
alias svi=sudoedit
|
||||
alias svim=sudoedit
|
||||
|
Reference in New Issue
Block a user