diff --git a/.bin/webdev b/.bin/webdev index 77606ae..3c935fb 100755 --- a/.bin/webdev +++ b/.bin/webdev @@ -13,20 +13,13 @@ then window=1 tmux rename-window -t $session:$window 'edit' 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 + tmux send-keys -t $session:$window "nnn" Enter - # window 2 - window=2 - tmux new-window -t $session:$window -n 'build' - tmux send-keys -t $session:$window 'cd ~/website && make notify' Enter + tmux split-window -t $session:$window -v + tmux resize-pane -t $session:$window.1 -y 6 + tmux send-keys -t $session:$window.1 'cd ~/website && make notify' Enter + tmux select-pane -U - # switch back to window 1 - tmux select-window -t $session:1 luakit -n -u http://localhost >/dev/null 2>&1 # attach to session diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..d9f5919 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,38 @@ +[user "git@git.codevoid.de:"] + name = Stefan Hagen + email = sh+git@codevoid.de +[user "git@github.wdf.sap.corp:"] + name = Stefan Hagen + email = stefan.hagen@sap.com +[user "git@github.infra.hana.ondemand.com:"] + name = Stefan Hagen + email = stefan.hagen@sap.com +[url "git@github.wdf.sap.corp:"] + insteadOf = https://github.wdf.sap.corp/ +[url "git@github.infra.hana.ondemand.com:"] + insteadOf = https://github.infra.hana.ondemand.com/ +[user "git@git.github.com:"] + name = c0dev0id + email = sh+github@codevoid.de +[user] + name = c0dev0id + email = sh+git@codevoid.de +[hub] + host = github.wdf.sap.corp + protocol = git +[http "https://github.wdf.sap.corp"] + sslVerify = false +[pull] + rebase = true +[push] + autoSetupRemote = true +[init] + defaultBranch = main +[diff] + tool = vimdiff2 +[merge] + tool = vimdiff2 +[safe] + directory = /usr/src + directory = /usr/ports + directory = /usr/ports/mystuff diff --git a/.tmux.conf b/.tmux.conf index 7fa33ce..8774970 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -26,18 +26,16 @@ unbind-key C-Left unbind-key C-Right # prefix + arrow creates pane in direction -bind Left split-window -h -b -bind Right split-window -h -bind Up split-window -v -b -bind Down split-window -v +bind | split-window -h +bind - split-window -v unbind '"' unbind % -# select panes using Ctrl-Arrow without prefix -bind -n M-Left select-pane -L -bind -n M-Right select-pane -R -bind -n M-Up select-pane -U -bind -n M-Down select-pane -D +# select panes using Ctrl-Arrow +bind Left select-pane -L +bind Right select-pane -R +bind Up select-pane -U +bind Down select-pane -D # resize panes bind -n C-Left resize-pane -L 1