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
a0d9149013
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-06-05 15:24:46 +00:00
c1f65fc03d
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-06-05 15:24:46 +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 "${1:-tmp}.XXXXXXXX")"; }
cdt() { cd "$(mktemp -d -t "${1:-tmp}.XXXXXXXX")"; }
alias svi=sudoedit
alias svim=sudoedit