Add push to site compilation, small cleanups

This commit is contained in:
Trevor Vallender 2023-07-07 17:58:08 +01:00
parent 661b3b231c
commit 067598a965
3 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -9,7 +9,7 @@ if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
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
'
@ -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