alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
POSIXify, correct tmux conf
author
j3s
date
6 years ago
(Dec 11, 2019, 9:50 AM -0600)
commit
14ac8f11
14ac8f11fec2eed26886d04022bf6c09b5bfdd20
parent
2faba5a4
2faba5a4af0e24f8dbe7a70340c7b7c817ddc4e7
+24
-7
3 changed files
Expand all
Collapse all
Unified
Split
.tmux.conf
bin
MACC02VK5ECHTD7
j
jmass
+3
-4
.tmux.conf
Reviewed
···
1
1
# Global opts
2
2
-
set-option -g default-shell fish
3
2
setw -g mode-keys vi
4
3
set-option -sg escape-time 0
5
4
set -s escape-time 0
6
6
-
7
7
-
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
8
5
9
6
# use vim-like keys for splits and windows
10
7
bind-key \ split-window -h -c "#{pane_current_path}"
···
14
11
bind-key k select-pane -U
15
12
bind-key l select-pane -R
16
13
14
14
+
# shortcuts
15
15
+
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
16
16
+
17
17
# colors hurt my eyes
18
18
set -g status-bg black
19
19
set -g status-fg white
20
20
-
set -g status-interval k
+2
-2
bin/MACC02VK5ECHTD7/j
Reviewed
···
1
1
#!/bin/sh
2
2
3
3
-
local query="$1"
3
3
+
query="$1"
4
4
shift 2> /dev/null
5
5
-
local ip=$(awless list instances --filter state=running,name="$query" "$@" --format json | jq -r '.[] | [.PrivateIP] | .[]' | head -n1)
5
5
+
ip=$(awless list instances --filter state=running,name="$query" "$@" --format json | jq -r '.[] | [.PrivateIP] | .[]' | head -n1)
6
6
/usr/local/bin/ssh "$ip"
+19
-1
bin/MACC02VK5ECHTD7/jmass
Reviewed
···
1
1
#!/bin/bash
2
2
query="$1"
3
3
shift 2> /dev/null
4
4
-
ips=$(awless list instances --filter state=running,name="$query" "$@" --format json | jq -r '.[] | [.PrivateIP] | .[]')
4
4
+
5
5
+
text=$(
6
6
+
printf "$*" | \
7
7
+
sed -e 's/bpe/-p browse_prod -r us-east-1/g' | \
8
8
+
sed -e 's/bpw/-p browse_prod -r us-west-2/g' | \
9
9
+
sed -e 's/bse/-p browse_stage -r us-east-1/g' | \
10
10
+
sed -e 's/bsw/-p browse_stage -r us-west-2/g' | \
11
11
+
sed -e 's/bte/-p browse_test -r us-east-1/g' | \
12
12
+
sed -e 's/btw/-p browse_test -r us-west-2/g' | \
13
13
+
sed -e 's/cpe/-p cgraph_prod -r us-east-1/g' | \
14
14
+
sed -e 's/cpw/-p cgraph_prod -r us-west-2/g' | \
15
15
+
sed -e 's/cse/-p cgraph_stage -r us-east-1/g' | \
16
16
+
sed -e 's/csw/-p cgraph_stage -r us-west-2/g' | \
17
17
+
sed -e 's/cte/-p cgraph_test -r us-east-1/g' | \
18
18
+
sed -e 's/ctw/-p cgraph_test -r us-west-2/g'
19
19
+
)
20
20
+
21
21
+
ips=$(awless list instances --filter state=running,name="$query" $text --format json | jq -r '.[] | [.PrivateIP] | .[]')
22
22
+
5
23
tmux new-window 'ssh-trash-test'
6
24
7
25
while IFS= read -r i