diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-18 18:11:11 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-18 18:11:11 +0200 | 
| commit | 41f6ab7534a85a9007297515a2417746dfcd1289 (patch) | |
| tree | 854743c9dedb876847c0fedc1a51584a52987eb1 | |
| parent | 1bd730718e5e7420c446904433d20df6aabb7658 (diff) | |
| parent | e03d24409377e20e93d5dc8eab60deb19566c2a1 (diff) | |
Merge branch 'main' of db:dotfiles
| -rwxr-xr-x | bin/serverscripts/dlcons | 2 | ||||
| -rw-r--r-- | config/essentials/zsh/functions.zsh | 3 | 
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/serverscripts/dlcons b/bin/serverscripts/dlcons new file mode 100755 index 0000000..69d9484 --- /dev/null +++ b/bin/serverscripts/dlcons @@ -0,0 +1,2 @@ +#!/bin/sh +docker exec -it deluge deluge-console -c /config 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"  }  | 
