diff --git a/.zshrc b/.zshrc index 7427652..41ab5d2 100644 --- a/.zshrc +++ b/.zshrc @@ -100,6 +100,11 @@ alias gitcommiiiiiiiiiiiiiit='cz' alias clip='xclip -selection primary' +# alias wg-reload="f() {sudo bash -c 'cd /etc/wireguard && wg syncconf $1 <(wg-quick strip $1)'};f" +function wg-reload() { + sudo bash -c 'cd /etc/wireguard && wg syncconf $0 <(wg-quick strip $0)' $1 +} + # Finally, start a tmux session [ -x "$(command -v tmux)" ] \ && [ -z "${TMUX}" ] \