Update 2022-12-17 19:27 OpenBSD/amd64
This commit is contained in:
parent
036ce2f081
commit
a24b700e0b
14
.bin/webdev
14
.bin/webdev
@ -1,6 +1,8 @@
|
|||||||
#!/bin/sh -x
|
#!/bin/sh -x
|
||||||
|
|
||||||
session=webdev
|
session=webdev
|
||||||
|
socket=~/.tmux.sock
|
||||||
|
arg="$1"
|
||||||
|
|
||||||
if ! tmux att -t webdev >/dev/null 2>&1
|
if ! tmux att -t webdev >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
@ -10,14 +12,22 @@ then
|
|||||||
# window 1
|
# window 1
|
||||||
window=1
|
window=1
|
||||||
tmux rename-window -t $session:$window 'edit'
|
tmux rename-window -t $session:$window 'edit'
|
||||||
tmux send-keys -t $session:$window 'cd ~/website' Enter
|
tmux send-keys -t $session:$window 'cd ~/website/site' Enter
|
||||||
|
if [ ! -z "$arg" ]
|
||||||
|
then
|
||||||
|
tmux send-keys -t $session:$window "vim $arg" Enter
|
||||||
|
else
|
||||||
|
tmux send-keys -t $session:$window "nnn" Enter
|
||||||
|
fi
|
||||||
|
|
||||||
# window 2
|
# window 2
|
||||||
window=2
|
window=2
|
||||||
tmux new-window -t $session:$window -n 'build'
|
tmux new-window -t $session:$window -n 'build'
|
||||||
tmux send-keys -t $session:$window 'cd ~/website && make notify' Enter
|
tmux send-keys -t $session:$window 'cd ~/website && make notify' Enter
|
||||||
|
|
||||||
# cd ~/website && make show-local > /dev/null 2>&1
|
# switch back to window 1
|
||||||
|
tmux select-window -t $session:1
|
||||||
|
cd ~/website && make show-local > /dev/null 2>&1
|
||||||
|
|
||||||
# attach to session
|
# attach to session
|
||||||
tmux att -t webdev
|
tmux att -t webdev
|
||||||
|
@ -73,7 +73,7 @@ set -g set-titles off
|
|||||||
# Reduce delay for escape key press
|
# Reduce delay for escape key press
|
||||||
set -sg escape-time 10
|
set -sg escape-time 10
|
||||||
|
|
||||||
#set -g default-terminal "screen-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
|
|
||||||
# we can do utf lines
|
# we can do utf lines
|
||||||
set -as terminal-overrides ",*:U8=0"
|
set -as terminal-overrides ",*:U8=0"
|
||||||
|
@ -197,6 +197,9 @@ set statusline+=\ %b/0x%B
|
|||||||
set statusline+=\ %c\ %p%%
|
set statusline+=\ %c\ %p%%
|
||||||
set statusline+=\
|
set statusline+=\
|
||||||
|
|
||||||
|
" ITALIC FIX
|
||||||
|
set t_ZH=[3m
|
||||||
|
set t_ZR=[23m
|
||||||
|
|
||||||
" OPEN FILE
|
" OPEN FILE
|
||||||
nnoremap <C-t> :Texplore<CR>
|
nnoremap <C-t> :Texplore<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user