--- wemux.orig	2014-03-13 23:47:09.000000000 +0100
+++ wemux	2014-03-13 23:49:01.000000000 +0100
@@ -9,8 +9,8 @@
 # in another window (separate cursors) in the hosts tmux session.
 #
 # To set a user as host add their username to the host_list in the configuration
-# file located at /usr/local/etc/wemux.conf
-# Other configuations options are also located in /usr/local/etc/wemux.conf
+# file located at %%PREFIX%%/etc/wemux.conf
+# Other configuations options are also located in %%PREFIX%%/etc/wemux.conf
 #
 # For environments with multiple hosts running their own independent servers
 # on the same machine wemux can join different servers with the wemux join
@@ -46,7 +46,7 @@
 version="3.2.0"
 
 # Setup and Configuration Files.
-# Default settings, modify them in the /usr/local/etc/wemux.conf file:
+# Default settings, modify them in the %%PREFIX%%/etc/wemux.conf file:
 host_list=(change_this_in_wemux_conf)
 socket_prefix="/tmp/wemux"
 options="-u"
@@ -66,8 +66,8 @@
 # Set $EDITOR default to vi if not configured on host machine.
 editor=${EDITOR:="vi"}
 
-# Load configuration options from /usr/local/etc/wemux.conf
-[ -f /usr/local/etc/wemux.conf ] && . /usr/local/etc/wemux.conf
+# Load configuration options from %%PREFIX%%/etc/wemux.conf
+[ -f %%PREFIX%%/etc/wemux.conf ] && . %%PREFIX%%/etc/wemux.conf
 
 # Sanitize server name, replace spaces and underscores with dashes.
 # Remove all non alpha-numeric characters, convert to lowercase.
@@ -317,7 +317,7 @@
 }
 
 # Announce when user attaches/detaches from server.
-# Can be disabled by changing announce_attach to false in /usr/local/etc/wemux.conf
+# Can be disabled by changing announce_attach to false in %%PREFIX%%/etc/wemux.conf
 # The first argument specifies the mode the user is attaching in for the message
 # All additional arguments get wrapped in the attach/detach messages.
 announce_connection() {
@@ -331,7 +331,7 @@
 }
 
 # Announces when a user joins/changes their server.
-# Can be disabled by changing announce_server_change to false in /usr/local/etc/wemux.conf
+# Can be disabled by changing announce_server_change to false in %%PREFIX%%/etc/wemux.conf
 # Change server name for server, or display server name if no argument is given.
 change_server() {
   if [ "$allow_server_change" == "true" ]; then
@@ -373,7 +373,7 @@
   echo "To check for a newer version visit: http://www.github.com/zolrath/wemux"
 }
 
-# Host mode, used when user is listed in the host_list array in /usr/local/etc/wemux.conf
+# Host mode, used when user is listed in the host_list array in %%PREFIX%%/etc/wemux.conf
 host_mode() {
   # Start the server if it doesn't exist, otherwise reattach.
   start_server() {
@@ -503,7 +503,7 @@
       status_users)   status_users;;
       display_users)  display_users;;
       version|v)      display_version;;
-      conf*|c)        $editor /usr/local/etc/wemux.conf;;
+      conf*|c)        $editor %%PREFIX%%/etc/wemux.conf;;
       *)              if ! $wemux "$@"; then
                         echo "To see a list of wemux commands enter 'wemux help'"
                         exit 127
@@ -512,7 +512,7 @@
   fi
 }
 
-# Client Mode, used when user is NOT listed in the host_list in /usr/local/etc/wemux.conf
+# Client Mode, used when user is NOT listed in the host_list in %%PREFIX%%/etc/wemux.conf
 client_mode() {
   # Mirror mode, allows the user to view wemux server in read only mode.
   mirror_mode() {
