refactor
This commit is contained in:
parent
9a4d3401b9
commit
5b70bf8480
@ -1 +0,0 @@
|
|||||||
Xft.dpi: 100
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -eux
|
|
||||||
|
|
||||||
readonly SESSION=dotfiles
|
|
||||||
readonly MAINW=1
|
|
||||||
|
|
||||||
readonly WORKING_PROJECT="${HOME}/dotfiles"
|
|
||||||
|
|
||||||
if ! tmux has-session -t="${SESSION}"; then
|
|
||||||
tmux new-session -s "${SESSION}" -d -n "${MAINW}" -c "${WORKING_PROJECT}"
|
|
||||||
tmux splitw -t "${SESSION}:${MAINW}" -d -b -h -l "${_tmux_other_pane_size}" -c "${WORKING_PROJECT}"
|
|
||||||
sleep 0.3
|
|
||||||
tmux send-keys -t "${SESSION}:${MAINW}.1" "git pull --rebase && git push" Enter
|
|
||||||
tmux send-keys -t "${SESSION}:${MAINW}.2" 'ya' Enter
|
|
||||||
fi
|
|
||||||
|
|
||||||
tmux switch-client -t "${SESSION}" -c "$(tmux display -p '#{client_tty}')"
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -eux
|
|
||||||
|
|
||||||
|
|
||||||
random() {
|
|
||||||
shuf -i 0-32767 -n 1
|
|
||||||
}
|
|
||||||
|
|
||||||
readonly SESSION_PREFIX="sandbox"
|
|
||||||
|
|
||||||
SESSION="${SESSION_PREFIX}$(random)"
|
|
||||||
while tmux has-session -t="${SESSION}" 2>/dev/null
|
|
||||||
do
|
|
||||||
SESSION="${SESSION_PREFIX}$(random)"
|
|
||||||
done
|
|
||||||
readonly SESSION
|
|
||||||
|
|
||||||
|
|
||||||
WORKING_PROJECT="$(mktemp -td "${SESSION}.XXXX")"
|
|
||||||
readonly WORKING_PROJECT
|
|
||||||
|
|
||||||
tmux new-session -s "${SESSION}" -d -c "${WORKING_PROJECT}"
|
|
||||||
tmux switch-client -t "${SESSION}" -c "$(tmux display -p '#{client_tty}')"
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -eux
|
|
||||||
|
|
||||||
readonly SESSION='system-update'
|
|
||||||
readonly MAINW=1
|
|
||||||
|
|
||||||
readonly WORKING_PROJECT="${HOME}"
|
|
||||||
|
|
||||||
if ! tmux has-session -t="${SESSION}"; then
|
|
||||||
tmux new-session -s "${SESSION}" -d -n "${MAINW}" -c "${WORKING_PROJECT}"
|
|
||||||
tmux splitw -t "${SESSION}:${MAINW}" -d -b -h -l "${_tmux_other_pane_size}" -c '#{pane_current_path}'
|
|
||||||
tmux send-keys -t "${SESSION}:${MAINW}.1" "sudo pacman -Syu --noconfirm"
|
|
||||||
tmux send-keys -t "${SESSION}:${MAINW}.2" '$EDITOR' Enter
|
|
||||||
sleep 0.5
|
|
||||||
tmux send-keys -t "${SESSION}:${MAINW}.2" ':Lazy' Enter
|
|
||||||
fi
|
|
||||||
|
|
||||||
tmux switch-client -t "${SESSION}" -c "$(tmux display -p '#{client_tty}')"
|
|
||||||
@ -1 +0,0 @@
|
|||||||
export PATH="${PATH}:${HOME}/.local/bin"
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user