Add push to site compilation, small cleanups
This commit is contained in:
parent
661b3b231c
commit
067598a965
|
@ -66,5 +66,6 @@ setup_files() {
|
||||||
|
|
||||||
traverse_dir $INPUT_DIR/\* 0
|
traverse_dir $INPUT_DIR/\* 0
|
||||||
setup_files
|
setup_files
|
||||||
|
rsync -arz ~/public_html/* -e ssh tsv@kernighan:/var/www/tsvallender.co.uk
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -6,12 +6,13 @@ set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi
|
if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
keyctl link @us @s
|
keyctl link @us @s
|
||||||
Hyprland
|
Hyprland
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pushd ~
|
||||||
main "$@"
|
main "$@"
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ set -o pipefail
|
||||||
if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi
|
if [[ "${TRACE-0}" == "1" ]]; then set -o xtrace; fi
|
||||||
|
|
||||||
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
|
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
|
||||||
echo 'Usage:
|
echo 'Usage:
|
||||||
tp new Start a new tmux session (unshared)
|
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 sharew Share an existing session (write-access)
|
||||||
tp unshare Remove share from existing session
|
tp unshare Remove share from existing session
|
||||||
'
|
'
|
||||||
|
@ -18,7 +18,7 @@ fi
|
||||||
|
|
||||||
pushd ~
|
pushd ~
|
||||||
|
|
||||||
SOCKET_PATH="/var/tmux_share/shared"
|
SOCKET_PATH="/var/tmux_share/shared"
|
||||||
SHARED_USER="foxsoft" # Should change this to use getent group tmux
|
SHARED_USER="foxsoft" # Should change this to use getent group tmux
|
||||||
|
|
||||||
share_ro_session() {
|
share_ro_session() {
|
||||||
|
@ -55,7 +55,7 @@ fi
|
||||||
if [[ $1 = "new" || $1 = "n" ]] ; then
|
if [[ $1 = "new" || $1 = "n" ]] ; then
|
||||||
new_session
|
new_session
|
||||||
elif [[ $1 = "sharero" || $1 = "sro" ]] ; then
|
elif [[ $1 = "sharero" || $1 = "sro" ]] ; then
|
||||||
share_session
|
share_ro_session
|
||||||
elif [[ $1 = "sharew" || $1 = "srw" ]] ; then
|
elif [[ $1 = "sharew" || $1 = "srw" ]] ; then
|
||||||
share_rw_session
|
share_rw_session
|
||||||
elif [[ $1 = "unshare" ]] ; then
|
elif [[ $1 = "unshare" ]] ; then
|
||||||
|
|
Loading…
Reference in New Issue