diff --git a/make_site.bash b/make_site.bash index 60c5556..c10b079 100755 --- a/make_site.bash +++ b/make_site.bash @@ -66,5 +66,6 @@ setup_files() { traverse_dir $INPUT_DIR/\* 0 setup_files +rsync -arz ~/public_html/* -e ssh tsv@kernighan:/var/www/tsvallender.co.uk popd diff --git a/startup.bash b/startup.bash index fc2f218..dd73666 100755 --- a/startup.bash +++ b/startup.bash @@ -6,12 +6,13 @@ set -o nounset set -o pipefail if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi -cd "$(dirname "$0")" main() { keyctl link @us @s Hyprland } +pushd ~ main "$@" +popd diff --git a/tmux_pair.bash b/tmux_pair.bash index ba50268..ddb6a3b 100755 --- a/tmux_pair.bash +++ b/tmux_pair.bash @@ -7,9 +7,9 @@ set -o pipefail if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then - echo 'Usage: + echo 'Usage: tp new Start a new tmux session (unshared) - tp share Share an existing session (read-only) + tp sharero Share an existing session (read-only) tp sharew Share an existing session (write-access) tp unshare Remove share from existing session ' @@ -18,7 +18,7 @@ fi pushd ~ -SOCKET_PATH="/var/tmux_share/shared" +SOCKET_PATH="/var/tmux_share/shared" SHARED_USER="foxsoft" # Should change this to use getent group tmux share_ro_session() { @@ -55,7 +55,7 @@ fi if [[ $1 = "new" || $1 = "n" ]] ; then new_session elif [[ $1 = "sharero" || $1 = "sro" ]] ; then - share_session + share_ro_session elif [[ $1 = "sharew" || $1 = "srw" ]] ; then share_rw_session elif [[ $1 = "unshare" ]] ; then