Synergy conf location to variable.

This commit is contained in:
Ivan Malison 2015-01-03 20:55:50 -08:00
parent 1096c7f485
commit 4fb13aa029

View File

@ -1,3 +1,5 @@
SYNERGY_CONF="$HOME/Dropbox/configs/synergy.conf"
function make_me_synergy() { function make_me_synergy() {
local new_host_name="$(echo $SSH_CONNECTION | get_cols 1)" local new_host_name="$(echo $SSH_CONNECTION | get_cols 1)"
OPTIND=1 OPTIND=1
@ -34,6 +36,6 @@ function clear_synergy_for_ip() {
} }
function activate_synergy_for() { function activate_synergy_for() {
test -z "$(pgrep synergys)" && synergys --config ~/synergy.conf test -z "$(pgrep synergys)" && synergys --config "$SYNERGY_CONF"
ssh $1 "source ~/.zshrc && make_me_synergy" ssh $1 "source ~/.zshrc && synergyc $(localip)"
} }