From 4fb13aa0294dbd5932e44fdb91eaad327096d888 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 3 Jan 2015 20:55:50 -0800 Subject: [PATCH] Synergy conf location to variable. --- dotfiles/lib/shellrc/synergy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dotfiles/lib/shellrc/synergy.sh b/dotfiles/lib/shellrc/synergy.sh index 0b4d98c9..d96dd05e 100644 --- a/dotfiles/lib/shellrc/synergy.sh +++ b/dotfiles/lib/shellrc/synergy.sh @@ -1,3 +1,5 @@ +SYNERGY_CONF="$HOME/Dropbox/configs/synergy.conf" + function make_me_synergy() { local new_host_name="$(echo $SSH_CONNECTION | get_cols 1)" OPTIND=1 @@ -34,6 +36,6 @@ function clear_synergy_for_ip() { } function activate_synergy_for() { - test -z "$(pgrep synergys)" && synergys --config ~/synergy.conf - ssh $1 "source ~/.zshrc && make_me_synergy" + test -z "$(pgrep synergys)" && synergys --config "$SYNERGY_CONF" + ssh $1 "source ~/.zshrc && synergyc $(localip)" }