summaryrefslogtreecommitdiff
path: root/config/essentials
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials')
-rw-r--r--config/essentials/zsh/functions.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index fae05d6..bfaea9d 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -72,7 +72,8 @@ ipc ()
calc () { echo "$@" | bc -l }
unique () {
- f="/tmp/$(uuidgen)"
+ local f
+ f="$(mktemp)"
awk '!x[$0]++' "$1" > "$f"
mv "$f" "$1"
}