1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
6ceb993208
aliases: fix all shellcheck warnings
Most of these changes have no semantic bearing, but some of the warnings
specifically related to quoting fix some word-splitting and globbing
issues with certain scripts.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-05-25 11:27:38 +00:00
4e505c23c6
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>
2021-05-25 11:01:14 +00:00

View File

@ -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 -'
cdt() { cd "$(mktemp -d -t "${1:-tmp}.XXXXXXXX")"; }
cdt() { cd "$(mktemp -d "${1:-tmp}.XXXXXXXX")"; }
alias svi=sudoedit
alias svim=sudoedit